Functions§
- check_
admin_ exists - Checks if any administrator user exists in the system.
- create_
user - Registers a new user in the system.
- delete_
user - Deletes a user account from the system.
- filter_
user - Converts a
Userwith sensitive data into aFilteredUsersafe for API responses. - get_
current_ user - Retrieves the currently authenticated user’s information.
- get_
user_ by_ id - Retrieves a single user’s details by their ID.
- get_
users - Retrieves all users in the system.
- login
- Authenticates a user and creates a JWT token for session management.
- logout
- Logs out the current user by invalidating their session cookie.
- setup_
initial_ admin - Creates the initial administrator account for a fresh system.
- update_
user - Updates an existing user’s information.