This interface is implemented by all events which fire after user logged in.

In the event handler you can access the following information:

  • The username of the user who attempted to log in.
  • The email of the user who attempted to log in.
  • The ip address of the user who attempted to log in.
  • The LoginResult - information about the result of the login process. Possible results:
    • Success - User was successfully registered as logged in
    • UserLimitReached - The limit of maximum simultaneous logged in users is reached
    • UserNotFound - User not found in any provider
    • UserLoggedFromDifferentIp - User is already logged in from different IP address
    • SessionExpired - Indicates that the user logical session has expired
    • UserLoggedOff - User have the authentication cookie but does not have logged in the database or user is already logged out.
    • UserLoggedFormDifferentComputer - More than one users trying to login from the same IP but from different computers.
    • Unknown - Invalid username or password specified.
    • NeedAdminRights - User is not administrator to logout other users
    • UserAlreadyLoggedIn - User already is logged in. We need to ask the user to logout someone or himself
    • UserRevoked - User was revoked. The reason is that the user was deleted or user rights and role membership was changed
    • SiteAccessNotAllowed - user is not allowed to access the current site
    • RejectedCustom - could be used for external (non-Sitefinity) validation.

Use the following code sample:

Was this article helpful?

Next article