Skip to content

Commit cd2d4b9

Browse files
committed
Rmvd dumy_check if bad username; already did real
1 parent 85bd0ad commit cd2d4b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/api/user_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def dummy_check():
108108
pwhash, role, is_active = result.fetchone()
109109
else:
110110
log_user_action(username, "Failure", "Invalid username")
111+
dummy_check()
111112
return jsonify("Bad credentials"), 401
112113

113114
if is_active.lower() == "y" and check_password(presentedpw, pwhash):

0 commit comments

Comments
 (0)