This commit is contained in:
CAG2Mark 2024-04-28 23:41:43 +08:00
parent 3eb94ae50b
commit 0bcb1452d5

2
bot.py
View File

@ -60,6 +60,8 @@ class Bot:
pw_bytes = password.encode('utf-8')
del password
pw_hash = self.data.get_user_password_hashsalt(inter.guild_id, inter.user.id)
if pw_hash:
pw_hash_bytes = bytes.fromhex(self.data.get_user_password_hashsalt(inter.guild_id, inter.user.id))
if not pw_hash or bcrypt.checkpw(pw_bytes, pw_hash_bytes):