joomla / joomla-cms Public
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
[4.0] Viewing privacy policy from new user profile form does not work if require password reset is enabled #24719
Comments
TBH I don't know if there's a fix for this without shoving in a new plugin event. The password reset required redirect is done inside a helper method in the application classes that is based on a whitelisted set of components, layouts, and tasks. Putting the logic in there to determine the privacy policy article doesn't fly because that is determined with plugins and for the love of all that is sane please do not put anymore hardcoded plugin references in the libraries API unless you move that code out of plugins and into a library class. So, fixing it constitutes a new feature (a |
Just a very nasty-hasty workaround, the basic idea and not more, that we use for two Joomla 3 sites at the moment with many new users that have to reset their password. |
Many thanks for the replies. I understand this is not an easy fix and will work around the issue until 4.0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24719. |
Changed Issue for J4. |
Some possible workarounds for 3.x, done in the Privacy Consent plugin:
|
That's the bit that requires the plugin event unless you're going to hardcode the core plugin that manages that privacy policy bit into the application class, which goes against the design of com_privacy (intentionally the policy article is managed at the plugin level to not force it to be in com_content and to have not duplicated com_content's article logic into com_privacy (including all of the backend management and frontend routing and display), so if someone using K2 or EasyBlog or any other content creating component wanted to put their article in their chosen content component they just need a plugin supporting the hook) and just adds yet another hardcoded plugin reference to the core libraries. |
I have the same problem, but i have today created a override for the label.php in the layout. This loads the content selected in the plugin, including modules, iframe, etc. In addition, a language string "PLG_SYSTEM_PRIVACYCONSENT_READ" must be created here, which is displayed as a button at the bottom of the modal window. This can be "OK", "read", "understood" or similar. Whether this fits with K2 or similar extensions, I can not determine, because I do not use this. This is a screenshot with the protostar template. Joomla 3.9.15 I will give my override the to the https://j-over.de |
Steps to reproduce the issue
Enable the System - Privacy Consent plugin and select a specific Privacy Article.
Manually create a new user and enable Require Password Reset.
Log in as this new user and you should be taken to the user profile form.
Try to view the Privacy Article by clicking on the Privacy Policy link in the user profile form. The modal window will show the user profile form and not the privacy article as expected.
Go back to User Management, disable Require Password Reset and save. Then try again to click on the Privacy Policy link in the user profile form and the modal window will now show the Privacy Article as expected.
Expected result
The modal window opened when the Privacy Policy link in the profile form should display the selected privacy article.
Actual result
The modal window opened displays the user profile form again and not the privacy article!
System information (as much as possible)
Joomla 3.9
Additional comments
So basically it seems that the user cannot view the Privacy Article from the profile form when he/she needs to reset the password at the same time.
I assume this is a bug and not intended behaviour?
The text was updated successfully, but these errors were encountered: