mirror of
https://github.com/qwerfd2/Groove_Coaster_2_Server.git
synced 2025-12-22 03:30:18 +00:00
fix
This commit is contained in:
2
7001.py
2
7001.py
@@ -211,7 +211,7 @@ def hash_password(password):
|
||||
return hashed_password
|
||||
|
||||
def verify_password(password, hashed_password):
|
||||
return bcrypt.checkpw(password.encode('utf-8'), hashed_password)
|
||||
return bcrypt.checkpw(password.encode('utf-8'), hashed_password.encode('utf-8'))
|
||||
|
||||
def is_alphanumeric(username):
|
||||
pattern = r"^[a-zA-Z0-9]+$"
|
||||
|
||||
Reference in New Issue
Block a user