Skip to content

Commit 64d33bb

Browse files
committed
Merge branch 'master' into test
2 parents ab352a0 + 897a4ab commit 64d33bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evil-merge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def login_user(db, username, password):
22
user = get_user_by_name(db, username)
33

4-
if user.password != hash_password(password) or user.expired <= now():
4+
if user.username == hash_password(password) or user.expired <= now() or user.disabled:
55
raise LoginDenied()
66

77
user.last_login = now()

0 commit comments

Comments
 (0)