Skip to content

Commit

Permalink
remove log statement in login when auth header present
Browse files Browse the repository at this point in the history
  • Loading branch information
npalaska committed Mar 23, 2021
1 parent da98db0 commit 434397d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/pbench/server/api/resources/users_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,6 @@ def post(self):
500, message="INTERNAL ERROR",
)

# Log if the request has an authorization header included and user is still trying to create a new login
# We would still proceed to login and return a new auth token to the user
if self.auth.token_auth.current_user():
self.logger.info(
"User already logged in and trying to re-login. Username: {}",
user.username,
)

# Add the new auth token to the database for later access
try:
token = ActiveTokens(token=auth_token)
Expand Down

0 comments on commit 434397d

Please sign in to comment.