J3 Issue ?
avatar MSnoeren1995
MSnoeren1995
17 Nov 2017

The require password option resets in the same request when you update the users' password as well.

Steps to reproduce the issue

  1. Open any user
  2. Enter a new password in both fields
  3. Enable the option "Require Password Reset"
  4. Save the user

Expected result

The expected result would be a changed password while the require password option is enabled.

Actual result

The password changed but the "require password" option is turned off, although on was selected.

System information (as much as possible)

Linux with PHP 7.1 and Joomla 3.8.2

Additional comments

avatar MSnoeren1995 MSnoeren1995 - open - 17 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Nov 2017
avatar MSnoeren1995 MSnoeren1995 - change - 17 Nov 2017
The description was changed
avatar MSnoeren1995 MSnoeren1995 - edited - 17 Nov 2017
avatar brianteeman
brianteeman - comment - 17 Nov 2017

If I understand you I think you are not understanding the feature.

"Setting this option to yes requires the user to reset their password the next time they log into the site."

avatar MSnoeren1995
MSnoeren1995 - comment - 17 Nov 2017

False, but for example; you change the password for an user into a simple one because they forgot. You check the "require password"-option and click save. The option is being reset and set to off while you requested it to be on. If you click "save and close" it'll ignored and the user will be user the easy password.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18590.

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Nov 2017
Status New Discussion
avatar zero-24
zero-24 - comment - 17 Nov 2017

yes. this is a known problem atm. You can not set the PW reset together with a new pw. So you first need to set the new PW and than edit the user again to set the PR reset.

avatar brianteeman
brianteeman - comment - 17 Nov 2017

ah i understand now

avatar zero-24
zero-24 - comment - 17 Nov 2017

here is the last PR tried to fix this issue: #16804 maybe someone else have an good idea how to fix this and not break the other logic michael points out there.

avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar Quy
Quy - comment - 31 May 2018

How about resetting the flag only if the User ID is the owner?

avatar zero-24
zero-24 - comment - 31 May 2018

Can you please explain a bit more what you want us to implement?

avatar Quy
Quy - comment - 31 May 2018

Make the following an if statement where only execute it when the logged in ID is the same as the user ID of the account.

$array['requireReset'] = 0;

In other words, only the owner of the account can reset this flag. Any changes done by the Super Admin on the backend will not affect this flag.

avatar mbabker
mbabker - comment - 31 May 2018

My point in #16804 (comment) still stands. It doesn't really matter WHO changes the password, the system only cares that the password is changed at a point after that flag is set. And without tightly coupling JUser to request data, or moving the code to the com_users MVC (which destroys its usability if you're using some extension which acts as a replacement for com_users), there really isn't a good solution to the scenario of "as an administrator I change an account's password and mark their account as requiring a password reset".

avatar Quy
Quy - comment - 31 May 2018

Got it. Can this be closed then as expected behavior?

avatar mbabker
mbabker - comment - 24 Jul 2018

Closing per above.

avatar mbabker mbabker - change - 24 Jul 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-07-24 16:30:19
Closed_By mbabker
Labels Added: J3 Issue
avatar mbabker mbabker - close - 24 Jul 2018

Add a Comment

Login with GitHub to post a comment