This article explains how you can use custom logic during the login process of the visitor of your web site.
First, we would like to point you on documentation article providing information on global events and their handling. One of these events is also security event. Information on handling this event is described in Security handler (CustomSecurityHandler class) article.

As you could read in the article you are able to add the custom code on "OnAuthentication()" event. In this event you are able to perform your logic (e.g. compare current date with the expiration date from the custom field) and return the "null" when user shouldn’t be logged in or the "UserInfo" object (representing user trying to login) on success.

See also:


Applies to: Kentico CMS 2.x, 3.x
Created on 9/3/2008 6:45:24 AM in Security & Permissions
 


Sitemap | Copyright 2008 Kentico software | Powered by Kentico