MCPcopy Create free account
hub / github.com/clockworknowledge/menome_processor / authenticate_user

Function authenticate_user

app/routers/processing.py:50–54  ·  view source on GitHub ↗
(username: str, password: str)

Source from the content-addressed store, hash-verified

48
49# Authenticate a user (This function might need the get_user_from_db function, which should be imported from user_management.py)
50def authenticate_user(username: str, password: str):
51 user = get_user_from_db(username)
52 if user and verify_password(password, user.password):
53 return user
54 return None
55
56# Helper function to convert Neo4j datetime to Python datetime
57def neo4j_datetime_to_python_datetime(neo4j_dt_str: str) -> datetime:

Callers 1

login_for_access_tokenFunction · 0.85

Calls 2

verify_passwordFunction · 0.85
get_user_from_dbFunction · 0.70

Tested by

no test coverage detected