MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / _verify_password

Function _verify_password

backend/app/database_ops/auth/admin/login.py:7–14  ·  view source on GitHub ↗
(password: str, salt: str, password_hash: str)

Source from the content-addressed store, hash-verified

5
6
7def _verify_password(password: str, salt: str, password_hash: str):
8 password_hash_bytes = password_hash.encode("utf-8")
9 salt_bytes = salt.encode("utf-8")
10 re_hashed_password = bcrypt.hashpw(password.encode("utf-8"), salt_bytes)
11 if password_hash_bytes == re_hashed_password:
12 return True
13 else:
14 return False
15
16
17async def login_admin(admin: Admin, password: str):

Callers 1

login_adminFunction · 0.85

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected