EmailAccountsAdmin class final
Administrative email account management functions.
These should generally not be exposed to clients, but might be useful for internal tasks or an admin dashboard.
An instance of this class is available at EmailAccounts.admin.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createEmailAuthentication(
Session session, {required UuidValue authUserId, required String email, required String? password, Transaction? transaction}) → Future< UuidValue> - Creates an email authentication for the auth user with the given email and password.
-
deleteEmailAccountRequestById(
Session session, UuidValue accountRequestId, {Transaction? transaction}) → Future< void> - Deletes an account request by its ID.
-
deleteExpiredAccountCreations(
Session session, {Transaction? transaction}) → Future< void> - Cleans up expired account creation requests.
-
deleteExpiredPasswordResetRequests(
Session session, {Transaction? transaction}) → Future< void> - Cleans up expired password reset attempts.
-
deleteFailedLoginAttempts(
Session session, {Duration? olderThan, Transaction? transaction}) → Future< void> -
Cleans up the log of failed login attempts older than
olderThan
. -
deletePasswordResetAttempts(
Session session, {Duration? olderThan, Transaction? transaction}) → Future< void> -
Cleans up the log of failed password reset attempts older than
olderThan
. -
findAccount(
Session session, {required String email, Transaction? transaction}) → Future< ({UuidValue authUserId, UuidValue emailAccountId, bool hasPassword})?> - Checks whether an email authentication exists for the given email address.
-
findEmailAccountRequest(
Session session, {required UuidValue accountRequestId, Transaction? transaction}) → Future< ({String email, bool isVerified})?> - Checks whether an email account request is still pending, and if so returns the associated email and verification status.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setPassword(
Session session, {required String email, required String password, Transaction? transaction}) → Future< void> - Sets the password for the authentication belonging to the given email.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited