Don't Change password for first time login

In Liferay, first time user will prompted to change password screen, where user can change password. Some times, we may not require user to change password, when we import users manually from outside. In this case, user would have already changed password, so we don't need to redirect user again.

There are different ways to do that. Let's check following how we can do that.

1. While creating user through admin interface, uncheck the checkbox 'Password Reset Required'




2. Uncheck 'Change Password' checkbox in Default Password Policy. This can be done through control panel, Password policies > Default Password Policy. 



3. Also you can override Lifeay's core classes and set passwordReset property of User bean to false.

Comments

Popular posts from this blog

Gradient Border Colors with CSS

10 Useful Libraries and Resources for Responsive Web Design

The Simplest Way To Center Elements Vertically And Horizontally