root login + admin account settings

This commit is contained in:
2023-09-01 17:16:52 +02:00
parent bac321f48e
commit 043aa171ca
6 changed files with 136 additions and 38 deletions

View File

@@ -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 {