#include <Wt/Auth/User>
A user.
This class represents a user. It is a value class that stores only the user id and a reference to an AbstractUserDatabase to access its properties.
An object can point to a valid user, or be invalid. Invalid users are typically used as return value for database queries which did not match with an existing user.
Not all methods are valid or applicable to your authentication system. See AbstractUserDatabase for a discussion.
Enumeration for an email token stored for the user.
Constructor.
Creates a user with id
id, and whose information is stored in the
database.
Adds an authentication token.
Adds an identity.
Depending on whether the database supports multiple identities per provider, this may change (like setIdentity()), or add another identity to the user. For some identity providers (e.g. a 3rd party identity provider), it may be sensible to have more than one identity of the same provider for a single user (e.g. multiple email accounts managed by the same provider, that in fact identify the same user).
Clears the email token.
Returns the user database.
This returns the user database passed in the constructor, or 0 if the user is invalid, and was constructed using the default constructor.
Returns the email address.
Returns the email token.
Returns the email token role.
Returns the number of consecutive unsuccessful login attempts.
Returns the user id.
This returns the id that uniquely identifies the user, and acts as a "primary key" to obtain other information for the user in the database.
Returns whether the user is valid.
A invalid user is a sentinel value returned by methods that query the database but could not identify a matching user.
Returns the last login attempt.
Comparison operator.
Comparison operator.
Two users are equal if they have the same identity and the same database.
Returns the password.
Removes an authentication token.
Removes an identity.
Logs the result of an authentication attempt.
This changes the number of failed login attempts, and stores the current date as the last login attempt time.
Sets the email address.
Sets an email token.
Sets an identity.
Unlike addIdentity() this overrides any other identity of the given provider, in case the underlying database supports multiple identities per user.
Sets a password.
Sets the account status.
Sets the unverified email address.
Returns the account status.
Returns the unverified email address.
Updates an authentication token.