mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-09 02:03:44 +08:00
v 2.4.5
This commit is contained in:
2
dist/modules/database/database.service.js
vendored
2
dist/modules/database/database.service.js
vendored
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user