Wt
4.11.1
|
The result of processing an email-sent token. More...
#include <Wt/Auth/AuthService.h>
Public Types | |
typedef EmailTokenState | State |
Typedef for enum Wt::Auth::EmailTokenState. | |
Public Member Functions | |
EmailTokenResult (EmailTokenState state, const User &user=User()) | |
Constructor. More... | |
EmailTokenState | state () const |
Returns the result. | |
const User & | user () const |
Returns the user, if any. More... | |
The result of processing an email-sent token.
An email token can be used for two purposes:
Wt::Auth::EmailTokenResult::EmailTokenResult | ( | EmailTokenState | state, |
const User & | user = User() |
||
) |
Constructor.
Creates an email token result.
const User & Wt::Auth::EmailTokenResult::user | ( | ) | const |
Returns the user, if any.
The identified user is only valid when the token state is UpdatePassword or EmailConfirmed. In that case, you may login the user as strongly authenticated since he presented a random token that was sent to his own email address.