Update auth.js

master
Moe 2021-02-19 15:24:56 +00:00
parent fd3cec5d73
commit 2c8ca56621
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ module.exports = function(s,config,lang){
success()
}
}
if(params.auth && JSON.stringify(s.superUsersApi).indexOf(params.auth) > -1){
if(params.auth && Object.keys(s.superUsersApi).indexOf(params.auth) > -1){
userFound = true
userSelected = s.superUsersApi[params.auth].$user
foundUser()