From 8ae153c2d67ec2759c7afbfc6bc15a85ea4d4646 Mon Sep 17 00:00:00 2001 From: UnitedAirforce Date: Sat, 22 Feb 2025 08:49:36 +0800 Subject: [PATCH] fix --- 7001.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/7001.py b/7001.py index a8657f1..61ffb52 100644 --- a/7001.py +++ b/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]+$"