-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.2] Fix password reset broken in backend #44723
base: 5.2-dev
Are you sure you want to change the base?
[5.2] Fix password reset broken in backend #44723
Conversation
} | ||
// In the administrator we need a different URL | ||
if (strtolower($name) === 'administrator') { | ||
$user = Factory::getApplication()->getIdentity(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from existing code. But anyone knows why do we have to use Factory::getApplication()->getIdentity();
instead of $this->getIdentity();
here?
I have tested this item ✅ successfully on 6fe7ad0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44723. |
@Eric69-dev Thanks for reporting the bug (#44715). Can you test as the Pull Request need a second successfull test? |
Hi, So it's better but not completly solved in my opinion. |
Hi @Eric69-dev When user login and password reset is required, there is a system message displayed You are required to reset your password before proceeding. See the attached screenshot, so I do not understand what's the difference with the previous behavior, could you please explain more details? |
Hi, In my opinion, this behavior was good in terms of security because it forced users to immediately customize their passwords. With version 5.2.3, this mandatory redirection is no longer active and, despite the system message, users who do not reset their password appear with the mention "Password reset required" in the user manager. |
@Eric69-dev Isn't it works the same with the change implemented in this PR:
So unless I misunderstood your message, it is working as expected for me. |
I re-applied the PR on a fresh install of Joomla 5.2.3 and indeed the expected behavior works correctly. Sorry for my mistake and I confirm that the problem is solved. |
@Eric69-dev please mark your successfull test at https://issues.joomla.org/tracker/joomla-cms/44723 |
I have tested this item ✅ successfully on 6fe7ad0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44723. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44723. |
Pull Request for Issue #44715
Summary of Changes
This PR fixes password reset broken as described here #44715. Further more, I improved code of
checkUserRequiresReset
, hopefully make it easier to understand and maintatin.Testing Instructions
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select: