Automatic password reset after X months

   —   
Sometimes you may need to reset user’s password after certain period of time (e.g. 3 months). This article shows you how to do it.
You can create custom scheduled task that will go through CMS_User table and check whether the password should be reset. You can inspire yourself with code that we use for generating passwords. You can find whole Generate password functionality in <your project>\CMSSiteManager\Administration\Users\User_Edit_Password.aspx.cs file in btnGenerateNew_Click method. There is a chapter describing scheduling custom code in our Developer's guide. Link to it can be found in See also section.

See also: Scheduling a custom code

Applies to: Kentico CMS 4.0
Share this article on   LinkedIn

Juraj Ondrus

Hi, I am the Technical support leader at Kentico. I'm here to help you use Kentico and get as much as possible out of it.