(username: str, password: str)
| 48 | |
| 49 | # Authenticate a user (This function might need the get_user_from_db function, which should be imported from user_management.py) |
| 50 | def 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 |
| 57 | def neo4j_datetime_to_python_datetime(neo4j_dt_str: str) -> datetime: |
no test coverage detected