Skip to content

Commit

Permalink
correct function name
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 22, 2024
1 parent 01e7fa6 commit 1260205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plogical/hashPassword.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ def hash_password(password):
def check_password(hashed_password, user_password):
return bcrypt.checkpw(user_password.encode(), hashed_password.encode())

def generate_token():
def generateToken():
token = base64.urlsafe_b64encode(secrets.token_bytes(32)).decode()
return token

0 comments on commit 1260205

Please sign in to comment.