Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Disable Password Reset Property Alberto Megía October 9, 2012 3:20 AM
RE: Disable Password Reset Property Nicolas Hrbt October 9, 2012 3:28 AM
RE: Disable Password Reset Property Apoorva Prakash October 9, 2012 3:27 AM
RE: Disable Password Reset Property Alberto Megía October 9, 2012 3:38 AM
RE: Disable Password Reset Property Nicolas Hrbt October 9, 2012 3:42 AM
RE: Disable Password Reset Property Alberto Megía October 9, 2012 3:46 AM
RE: Disable Password Reset Property Manish Kumar Jaiswal October 9, 2012 5:10 AM
RE: Disable Password Reset Property Apoorva Prakash October 9, 2012 5:56 AM
RE: Disable Password Reset Property Apoorva Prakash October 9, 2012 5:55 AM
RE: Disable Password Reset Property katakam praveen December 9, 2014 6:03 AM
RE: Disable Password Reset Property katakam praveen December 9, 2014 6:10 AM
RE: Disable Password Reset Property Olaf Kock December 9, 2014 4:45 PM
RE: Disable Password Reset Property Alberto Megía October 9, 2012 7:37 AM
RE: Disable Password Reset Property Alberto Megía October 9, 2012 7:58 AM
RE: Disable Password Reset Property Onochie Ojekwe November 25, 2014 2:39 AM
RE: Disable Password Reset Property Olaf Kock November 25, 2014 5:17 AM
RE: Disable Password Reset Property Enrique Valdes Lacasa July 7, 2015 7:47 AM
RE: Disable Password Reset Property Olaf Kock August 6, 2015 1:21 PM
RE: Disable Password Reset Property Madhava Venganapalli December 9, 2014 10:32 PM
RE: Disable Password Reset Property darren rose April 9, 2015 9:06 AM
Alberto Megía
Disable Password Reset Property
October 9, 2012 3:20 AM
Answer

Alberto Megía

Rank: New Member

Posts: 18

Join Date: October 9, 2012

Recent Posts

Good morning, my name is Alberto and this is the very first time I write here... so hi! emoticon
I have been looking for a property to disable Password reset when a new user login for the first time... but I did not find it.
What I have find was this:

https://github.com/liferay/liferay-portal/blob/master/portal-service/src/com/liferay/portal/kernel/util/PropsKeys.java

With the constant:

passwords.default.policy.change.required

But I did not work for me...

¿Any suggestions?
I know that you can disable it from Control Panel but I would like to know if there is a property to do that.

Thanks a lot!
Alberto
Nicolas Hrbt
RE: Disable Password Reset Property
October 9, 2012 3:28 AM
Answer

Nicolas Hrbt

Rank: New Member

Posts: 6

Join Date: August 2, 2012

Recent Posts

hi
try company.security.send.password.reset.link and company.security.send.password

I've seen that the display of the link in the login page is conditionned to those boolean by looking at the navigation.jsp file.

++
Apoorva Prakash
RE: Disable Password Reset Property
October 9, 2012 3:27 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hi Alberto,

Yes it works...

But if you modified settings form control panel (that goes in database), then the setting of property files are overridden.

Try using a new database, Hopefully it will work.

Thanks and Regards,
Apoorva Prakash
Alberto Megía
RE: Disable Password Reset Property
October 9, 2012 3:38 AM
Answer

Alberto Megía

Rank: New Member

Posts: 18

Join Date: October 9, 2012

Recent Posts

First of all, thx to both of you for your quick responses!!!

Apoorva Prakash, I do not understand you. Supose the following:

I have LR Portal installed.
I want to change that property in portal-ext.properties by:

passwords.default.policy.change.required=false

Do I need to drop my DB and create it again? :S
Nicolas Hrbt
RE: Disable Password Reset Property
October 9, 2012 3:42 AM
Answer

Nicolas Hrbt

Rank: New Member

Posts: 6

Join Date: August 2, 2012

Recent Posts

I gess that what he meant is that db take precedence over configuration file. Just test if it works, if i doesnt you may need to revert somehow the changes you made in the db.
Alberto Megía
RE: Disable Password Reset Property
October 9, 2012 3:46 AM
Answer

Alberto Megía

Rank: New Member

Posts: 18

Join Date: October 9, 2012

Recent Posts

OK!

But I did not do any changes... It is default password policy what I want to edit so ...

Do you know what tables manage that? I will try to figure out if I have no other choice
Manish Kumar Jaiswal
RE: Disable Password Reset Property
October 9, 2012 5:10 AM
Answer

Manish Kumar Jaiswal

Rank: Regular Member

Posts: 133

Join Date: November 25, 2008

Recent Posts

Try going to Control panel and then password policy and click on the default password policy and uncheck the Change Required Checkbox.

Regards
Manish
Apoorva Prakash
RE: Disable Password Reset Property
October 9, 2012 5:55 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Alberto Megía:
First of all, thx to both of you for your quick responses!!!

Apoorva Prakash, I do not understand you. Supose the following:

I have LR Portal installed.
I want to change that property in portal-ext.properties by:

passwords.default.policy.change.required=false

Do I need to drop my DB and create it again? :S


Basically if you change any settings in Control Panel, that goes in database, and while you are trying to revert that value, its not reverted but updated with the modified value (might be blank or unchecked) into the database. And always database is given priority over property files. So this might be the reason.
try pointing to a new database once, for testing reason only.

Hope this will help.

Thanks and Regards,
Apoorva Prakash
Apoorva Prakash
RE: Disable Password Reset Property
October 9, 2012 5:56 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Nicolas Hrbt:
I gess that what he meant is that db take precedence over configuration file. Just test if it works, if i doesnt you may need to revert somehow the changes you made in the db.


Yes, you are righty right mate...
Thanks... emoticon
Alberto Megía
RE: Disable Password Reset Property
October 9, 2012 7:37 AM
Answer

Alberto Megía

Rank: New Member

Posts: 18

Join Date: October 9, 2012

Recent Posts

Thanks a lot all of you for your responses and patience.

At the end,

passwords.default.policy.change.required=false

worked , so thx to all again.

Regards,
Alberto
Alberto Megía
RE: Disable Password Reset Property
October 9, 2012 7:58 AM
Answer

Alberto Megía

Rank: New Member

Posts: 18

Join Date: October 9, 2012

Recent Posts

Alberto Megía:
Thanks a lot all of you for your responses and patience.

At the end,

passwords.default.policy.change.required=false

worked , so thx to all again.

Regards,
Alberto



If anyone changes it in Control Panel, there is a table (PASSWORDPOLICY) that I can manage... emoticon

Thx again!
Onochie Ojekwe
RE: Disable Password Reset Property
November 25, 2014 2:39 AM
Answer

Onochie Ojekwe

Rank: New Member

Posts: 16

Join Date: April 8, 2011

Recent Posts

Very on point.... been killing myself over the configuration files..... PASSWORDPOLICY is it! change CHANGEREQUIRED table field to FALSE!!

Very usefull.. Thanks guys!
Olaf Kock
RE: Disable Password Reset Property
November 25, 2014 5:17 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3568

Join Date: September 23, 2008

Recent Posts

Don't change the value in the database. There's a UI in Control Panel: Use that.

When you have a portal-ext.properties setting that doesn't work, the odds are that it's a value that can be overridden through the UI as well. If there's a conflict between portal-ext.properties and the values configured through the UI, the UI wins. While these values will be stored in the database, you must not change them manually. Rather use the UI or the API to change them again.
katakam praveen
RE: Disable Password Reset Property
December 9, 2014 6:03 AM
Answer

katakam praveen

Rank: New Member

Posts: 19

Join Date: June 24, 2014

Recent Posts

with out change the new database how it will work?
katakam praveen
RE: Disable Password Reset Property
December 9, 2014 6:10 AM
Answer

katakam praveen

Rank: New Member

Posts: 19

Join Date: June 24, 2014

Recent Posts

HI,

I use this properties in portal-ext.properties


passwords.default.policy.change.required=false


but it is not working for me.

If i change from control panel for every user need to unchecked password policy.

please help me any one for this issue?
Olaf Kock
RE: Disable Password Reset Property
December 9, 2014 4:45 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3568

Join Date: September 23, 2008

Recent Posts

There are two things to keep apart: The default password policy can state that users need to change their password on first login. This will be applied when a new user account is created, or the password is changed by an admin. In this moment, the user will get a flag that they need to update their password on next login.

So, if you're talking about user accounts that have already been created, you'll have to take care of different data than when you want to change the default for all user accounts created in the future.

Never ever will you hear from me to use SQL to update your database, because once you get the hang of it, you'll use this for other purposes where it's not safe. If you only want to change 4 user accounts, it's best to edit them manually on Control Panel. If you have hundreds, thousands or more users, you should use the API: Create a script that modifies all user accounts (to remove the 'need to update password' flag) and saves them again.

To make sure that you don't have to do this again for future user accounts, change the default password policy. Do this on Control Panel (or at least validate there that the configuration is active). If you've already changed the default password policy through the UI, portal-ext.properties will be overruled by these settings.
Madhava Venganapalli
RE: Disable Password Reset Property
December 9, 2014 10:32 PM
Answer

Madhava Venganapalli

Rank: Junior Member

Posts: 31

Join Date: June 4, 2013

Recent Posts

Hi Alberto,
Please add bellow entries in portal-ext.properties . Then it will work fine.

passwords.default.policy.change.required
users.reminder.queries.enabled=false
users.reminder.queries.custom.question.enabled=false

Regards,
Madhava Venganapalli
darren rose
RE: Disable Password Reset Property
April 9, 2015 9:06 AM
Answer

darren rose

Rank: Regular Member

Posts: 221

Join Date: April 4, 2015

Recent Posts

Madhava Venganapalli:
Hi Alberto,
Please add bellow entries in portal-ext.properties . Then it will work fine.

passwords.default.policy.change.required
users.reminder.queries.enabled=false
users.reminder.queries.custom.question.enabled=false

Regards,
Madhava Venganapalli



you mean

passwords.default.policy.change.required=false
Enrique Valdes Lacasa
RE: Disable Password Reset Property
July 7, 2015 7:47 AM
Answer

Enrique Valdes Lacasa

Rank: Junior Member

Posts: 69

Join Date: July 29, 2014

Recent Posts

Thanks for the explanation Olaf. I would like to understand something at this point. Imagine that we have a brand new Liferay instance, and we hadn't manually changed any portal setting through the Control Panel UI yet. Then, would the properties:
1passwords.default.policy.changeable=...
2passwords.default.policy.change.required=...

work on true or false every single time, as long as we don't manually change them through the Control Panel UI?

Thanks!
Olaf Kock
RE: Disable Password Reset Property
August 6, 2015 1:21 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3568

Join Date: September 23, 2008

Recent Posts

(sorry for the late answer)

I believe you're right: If you've never started Liferay and the setting never made it into the database, it would be active. At least that would be my expectation. With this setting, I've never tried it out. And I somewhat expect that the default password policy is also written to the database quite early - either before the server got up the first time (with the values from portal.properties), or when you first edit and save it on the UI. I'll leave this for you to test.