This commit is contained in:
vastxie
2024-01-21 09:03:26 +08:00
parent cbd4c034fb
commit 3bd4bb5df1
291 changed files with 378 additions and 13717 deletions

View File

@@ -24,7 +24,7 @@ let DatabaseService = class DatabaseService {
async checkSuperAdmin() {
const user = await this.connection.query(`SELECT * FROM users WHERE role = 'super'`);
if (!user || user.length === 0) {
const superPassword = bcrypt.hashSync('nine-super', 10);
const superPassword = bcrypt.hashSync('123456', 10);
const adminPassword = bcrypt.hashSync('123456', 10);
const superEmail = 'default@cooper.com';
const adminEmail = 'defaultAdmin@cooper.com';