mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 21:34:24 +00:00
root login + admin account settings
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports.checkpassword = ( username, password ) => {
|
||||
if ( username === 'root' ) {
|
||||
db.getJSONData( 'rootAccount' ).then( account => {
|
||||
bcrypt.compare( password, account.pass ).then( res => {
|
||||
resolve( { 'status': res, 'twoFA': true } );
|
||||
resolve( { 'status': res, 'twoFA': 'enhanced' } );
|
||||
} );
|
||||
} );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user