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

Function login_admin

backend/app/database_ops/auth/admin/login.py:17–24  ·  view source on GitHub ↗
(admin: Admin, password: str)

Source from the content-addressed store, hash-verified

15
16
17async def login_admin(admin: Admin, password: str):
18 # 1. check password
19 if _verify_password(password, admin.salt, admin.password_hash):
20 admin = await refresh_admin_token(admin)
21 else:
22 raise_http_error(ErrorCode.INCORRECT_PASSWORD, message="Password is incorrect.")
23
24 return admin

Callers

nothing calls this directly

Calls 3

raise_http_errorFunction · 0.90
_verify_passwordFunction · 0.85
refresh_admin_tokenFunction · 0.70

Tested by

no test coverage detected