Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adk23333 committed Mar 9, 2024
1 parent af33eb2 commit abfeb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tieba-admin-server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def first_login_api(rqt: Request):
"""
try:
is_first = await Config.get_bool(key="first")
if not is_first or is_first is not None:
if not is_first:
return response.json({"status": 403, "msg": "不是首次登录"})
if not (rqt.form.get('BDUSS') and rqt.form.get('fname')
and rqt.form.get('password') and rqt.form.get('STOKEN')):
Expand Down

0 comments on commit abfeb11

Please sign in to comment.