Skip to content

Commit

Permalink
Update login.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jan 7, 2025
1 parent e6c7bc1 commit 0f410c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/admin/dashboard/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def do_login():
info = thisdb.getUserByName(username)
password = mw.md5(password)

if info['name'] != username or info['password'] != password:
if info is None or info['name'] != username or info['password'] != password:
msg = "<a style='color: red'>密码错误</a>,帐号:{1},密码:{2},登录IP:{3}", (('****', '******', request.remote_addr))

if login_cache_limit == None:
Expand Down

0 comments on commit 0f410c2

Please sign in to comment.