Using additional or custom logic during login process
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)
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