Skip to content

Commit

Permalink
strip whitespace in username
Browse files Browse the repository at this point in the history
  • Loading branch information
klementng committed Jan 24, 2024
1 parent 7a1c69c commit 5081614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/core/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def process_auth_header(module:AuthenticationModule, request:flask.Request, sess

if username == None or password == None:
return flask.abort(401)
else:
username = username.strip()

status_code = module.login(
username,
Expand Down

0 comments on commit 5081614

Please sign in to comment.