Search Results for

    Show / Hide Table of Contents

    IUserManager Interface

    Provides the APIs for managing users in the database.

    Syntax

    Unit: Sphinx.UserManager

    IUserManager = interface(IInterface);

    Methods

    Name Description
    CreateUser Overloaded
    CreateUser(TUser)
    CreateUser(TUser, string)
    UpdateUser Updates the specified user in the database.
    DeleteUser Deletes the specified user from the database.
    FindById Retrieves the user with the provided id, or nil if no user is found.
    FindByName Retrieves the user with the specified user name, or nil if no user is found.
    FindByEmail Retrieves the user with the specified e-mail, or nil if no user is found.
    If two or more users are found with same e-mail, an exception will be raised, that is why you should only call this method if RequireUniqueEmail is set to true in options.
    found.
    FindByPhoneNumber Retrieves the user with the specified phone number, or nil if no user is found.
    If two or more users are found with same phone number, an exception will be raised.
    CheckPassword Returns a boolean value indicating if Password is the correct password for the specified User.
    GenerateEmail​Confirmation​Token Generates an email confirmation token that should be used to set the email as confirmed.
    ConfirmEmail Sets the user e-mail as confirmed, using the provided confirmation token.
    GeneratePhone​Number​Confirmation​Token Generates a phone number confirmation token that should be used to set the phone number as confirmed.
    ConfirmPhoneNumber Sets the user phone number as confirmed, using the provided confirmation token.
    GeneratePassword​Reset​Token Generates a password reset token that should be used to reset the user password.
    BeginResetPassword Exchanges a password reset token by a change password token.
    GeneratePassword​Change​Token Generates a password change token that should be used to change the user password.
    ChangePassword Changes the user password to a new value, using the provided password change token.
    GenerateChange​Email​Token Generates an email change token that should be used to change the e-mail of a user.
    ChangeEmail Changes the user email, using the provided email change token.
    GenerateChange​Phone​Number​Token Generates a phone number change token that should be used to change the phone number of a user.
    ChangePhoneNumber Changes the user phone number, using the provided phone number change token.
    IsLockedOut Returns a flag indicating whether the specified user is locked out.
    AccessFailed Notifies a failed user login, incrementing the access failed count.
    ResetAccessFailed​Count Resets the access failed count to zero for the specified user.
    AddPassword Adds a new password for a user, if there is no current password set.
    GenerateUserToken Generates a token for the given user and purpose.
    VerifyUserToken Returns a flag indicating whether the specified token is valid for the given user and purpose.
    SetAuthentication​Token Saves an authentication token for a user in the database.
    GetAuthentication​Token Returns an authentication token for a user from the database.
    RemoveAuthentication​Token Removes an authentication token for a user from the database.
    VerifyTwoFactorToken Verifies the specified two factor authentication token for the given user.
    GetTwoFactorEnabled Returns a flag indicating whether the specified user has two factor authentication enabled or not.
    SetTwoFactorEnabled Sets a flag indicating whether the specified user has two factor authentication enabled or not.
    GetTwoFactorRequired Returns a flag indicating whether the specified user has two factor authentication required for login.
    SetTwoFactorRequired Sets a flag indicating whether the specified user must use two factor authentication to login. A null value means the default behavior will be used.
    GetAuthenticatorKey Returns the authenticator key for the user.
    ResetAuthenticatorKey Resets the authenticator key for the user.
    CreateUserInstance Creates a new user object instance.
    In This Article
    Back to top TMS Sphinx v1.15
    © 2021 - 2025 tmssoftware.com