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:

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article