Skip to content
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

[com_users][fix] User profil changes and password reset won't work if logout menu exists and no login menu is shown #12037

Closed
wants to merge 2 commits into from

Conversation

conseilgouz
Copy link
Contributor

@conseilgouz conseilgouz commented Sep 14, 2016

Pull Request for Issue # .

Summary of Changes

com_users/router.php

Testing Instructions

Joomla 3.6.2, no specific module/extension/plugin

  1. create a logout menu
  2. create a login menu that will disappear when you are logged in (shown if the user is "invited")
  3. set "force password reset" to yes on one user
  4. login with this user
  5. user profile is displayed but you cannot access the passord change form.

Documentation Changes Required: no

If a logout menu item exists, users can not access to profil changes.

It means that the "force password reset" function won't work either.

com_users/Router.php creates a default link index.php/logout/profile?layout=edit that won't work, it blocks profile changes button et stays on profile display form.

The problem is that logout menu creates the following link :
index.php?option=com_users&view=login&layout=logout&task=user.menulogout

and the router just checks view=login, ignoring the view part of the link.

A "cleaner" solution could be to change the logout menu to become index.php?option=com_users&view=logout.

Pascal

If a logout menu item exists, users can not access to profil changes.

It means that the password reset function won't work either.

com_users/Router.php creates a default link index.php/logout/profile?layout=edit that won't work, it blocks profile changes button et stays on profile display form. 

The problem is that logout menu creates the following link :
index.php?option=com_users&view=login&layout=logout&task=user.menulogout

and the router just checks view=login, ignoring the view part of the link.

A "cleaner" solution could be to change the logout menu to become index.php?option=com_users&view=logout.

Pascal
@conseilgouz conseilgouz changed the title User profil changes and password reset won't work if logout menu exists [fix] User profil changes and password reset won't work if logout menu exists Sep 15, 2016
@conseilgouz conseilgouz changed the title [fix] User profil changes and password reset won't work if logout menu exists [com_users][fix] User profil changes and password reset won't work if logout menu exists Sep 15, 2016
@brianteeman
Copy link
Contributor

I can NOT confirm your findings. As seen by the video everything works correctly - or do i misunderstand
login

@conseilgouz
Copy link
Contributor Author

Hi Brian,

It does work because you have both login and logout menus.

In my configuration, after user login, the login menu disappears (only shown if you are "invited"), so there 's only Logout Menu. In this case, you cannot access the profile changes.

Pascal

@conseilgouz conseilgouz changed the title [com_users][fix] User profil changes and password reset won't work if logout menu exists [com_users][fix] User profil changes and password reset won't work if logout menu exists and no login menu is shown Sep 19, 2016
@brianteeman
Copy link
Contributor

I tried again and I still cannot replicate it - see https://www.dropbox.com/s/1eqn8wwgvg6sedg/reset.mp4?dl=0


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

@conseilgouz
Copy link
Contributor Author

OK, one more condition: SEF mode should be ON (which is the default configuration).

Pascal

@brianteeman
Copy link
Contributor

And now I can replicate the issue -thanks. Will test soon

@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on 763887b

Thank you for being patient with me
I have now confirmed the issue and have applied the PR and it resolves the issue

Thanks!!!


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

@ghost
Copy link

ghost commented Jan 11, 2017

I have tested this item ✅ successfully on 763887b


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

@zero-24
Copy link
Contributor

zero-24 commented Jan 11, 2017

@Hackwar can you take a final look here?

As this are the merge conflicts we have with 3.7.0 router changes.

image

@Hackwar
Copy link
Member

Hackwar commented Jan 11, 2017

This PR does not seem to be valid anymore. The tests by @brianteeman are from before a complete rewrite of the routers. The code like this has no function right now. I did not test the whole thing, but I would be surprised if that is still an issue in the current staging. In any case, if this PR is merged in the current form, it will just create a bunch of notices and nothing more. There will be no change to the router by this.

@roland-d
Copy link
Contributor

@pmleconte Can you have a look to see if the issue still exists in 3.7.0 and if needed update your PR? Thank you.

@ghost
Copy link

ghost commented Jun 22, 2017

If this PR get no Response, it will be closed at 23th July 2017.

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/12037

@ghost
Copy link

ghost commented Jul 23, 2017

closed as stated above.


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

@procajlok
Copy link

Hello! O Joomla 3.8.1 I have the same problem. When i have 'logout' menu item (visible only for login user), user can't reset password.


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

@ghost
Copy link

ghost commented Apr 12, 2018

@procajlok Please update on latest Release and ask further help on the forums. This repository concerns in first Place Joomla-Core coding, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants