mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Fix: local login not possible
This commit is contained in:
parent
763c0f4a3d
commit
942aa93f57
@ -278,7 +278,7 @@ class Auth {
|
||||
* @param {function} done
|
||||
*/
|
||||
async localAuthCheckUserPw(username, password, done) {
|
||||
const user = Database.userModel.getUserByUsername(username.toLowerCase())
|
||||
const user = await Database.userModel.getUserByUsername(username.toLowerCase())
|
||||
|
||||
if (!user || !user.isActive) {
|
||||
done(null, null)
|
||||
|
Loading…
Reference in New Issue
Block a user