Skip to content

Commit

Permalink
fix: auth balance (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed May 10, 2021
1 parent b60dea9 commit 780bd0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flask_appbuilder/security/manager.py
Expand Up @@ -833,6 +833,12 @@ def auth_user_db(self, username, password):
if user is None:
user = self.find_user(email=username)
if user is None or (not user.is_active):
# Balance failure and success
check_password_hash(
"pbkdf2:sha256:150000$Z3t6fmj2$22da622d94a1f8118"
"c0976a03d2f18f680bfff877c9a965db9eedc51bc0be87c",
"password",
)
log.info(LOGMSG_WAR_SEC_LOGIN_FAILED.format(username))
return None
elif check_password_hash(user.password, password):
Expand Down

0 comments on commit 780bd0e

Please sign in to comment.