Skip to main content

Module user

Module user 

Source
Expand description

User model with Argon2id password hashing.

Structs§

User
A user account.

Functions§

create_user
Create a new user in the database.
find_by_login
Find a user by login name.
hash_password
Hash a password using Argon2id (RFC 9106).
verify_password
Verify a password against an Argon2id hash.