Skip to content

Commit

Permalink
Fix styling issue: in validating 2fa token, use staticmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvanb committed Nov 2, 2022
1 parent d5c93a2 commit b22c870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vantage6-server/vantage6/server/resource/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def post(self):
log.info(f"Succesfull login from {username}")
return ret, HTTPStatus.OK, {'jwt-token': token}

def validate_2fa_token(
self, user: User, mfa_code: Union[int, str]) -> bool:
@staticmethod
def validate_2fa_token(user: User, mfa_code: Union[int, str]) -> bool:
"""
Check whether the 6-digit two-factor authentication code is valid
Expand Down

0 comments on commit b22c870

Please sign in to comment.