MCPcopy Index your code
hub / github.com/dataease/SQLBot / authenticate

Function authenticate

backend/apps/system/crud/user.py:39–45  ·  view source on GitHub ↗
(*, session: Session, account: str, password: str)

Source from the content-addressed store, hash-verified

37 return userInfo
38
39def authenticate(*, session: Session, account: str, password: str) -> BaseUserDTO | None:
40 db_user = get_user_by_account(session=session, account=account)
41 if not db_user:
42 return None
43 if not verify_md5pwd(password, db_user.password):
44 return None
45 return db_user
46
47async def user_ws_options(session: Session, uid: int, trans: Optional[I18n] = None) -> list[UserWs]:
48 if uid == 1:

Callers 2

mcp_startFunction · 0.90
local_loginFunction · 0.85

Calls 2

verify_md5pwdFunction · 0.90
get_user_by_accountFunction · 0.85

Tested by

no test coverage detected