Skip to content

Commit 102575e

Browse files
committed
fixed a bug where the old style of password checking was being used and not the latest
1 parent 9b76587 commit 102575e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HardwareCheckout/device.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async def handle_session_register(self, entity, user_data, params) -> None:
131131
except Exception:
132132
return
133133

134-
if not check_password_hash(device.password, password):
134+
if not PasswordHasher.verify(password, device.password):
135135
return
136136

137137
# register entity id with db and update ssh/web/webro info

0 commit comments

Comments
 (0)