Update
This commit is contained in:
@@ -20,7 +20,7 @@ def login(username: str, password: str) -> bool:
|
||||
password,
|
||||
app.config['SECRET_KEY']
|
||||
),
|
||||
models.User.disabled == False
|
||||
models.User.disabled == False # noqa E712
|
||||
).first()
|
||||
if user is None:
|
||||
raise ValueError
|
||||
|
||||
Reference in New Issue
Block a user