-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] show pass not working in edit account #23913
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
Conversation
|
While this does work it is removing code that at least according to the comment is there to prevent autocomplete |
|
@brianteeman You can verify by debugging that autocomplete is already false, thus the commented code is not required. Plus, no such code is there in com_users/edit which serves the same purpose and thus has no extra security feature. |
|
So why was it there? Sorry but when I see a comment like that then we need to investigate why it was put there and if it is no longer required.. You can';t just delete it |
|
although it was slightly modified (password instead of text), that code was there in 3.x to cope with Firefox. as it is quite old stuff, we should test the code we have now in 4.0 on Firefox. |
|
@brianteeman @infograf768 @bahl24 thisis definetely not the way to fix this!!! The correct fix is to change the autocomplete to
The explanation is here: https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields |
|
@dgrammatiko As mentioned in the last line, this has not been implemented yet. |
|
@bahl24 works for me 🤷♂️ |
Ok it might be implemented now, let me change autocomplete to new pass, which eliminates the need of |
Signed-off-by: Nitish Bahl <[email protected]>
|
hey I dont even know if it is desirable to prevent autofill. I was just pointing out that we cant delete code without full investigation of why it was there. Otherwise we end up with bug reports on a new release |
|
@brianteeman As @infograf768 pointed out kindly see pr #7094 in which the following lines of code was added to prevent auto-filling of the forms. But since then many changes have been introduced in firefox such as autocomplete=new-password to get rid of the problem.
|
|
@brianteeman
No such code exists & show pass icon works properly |
|
@dgrammatiko just does not work for Firefox in 4.0. for the password fields The Password field itself is always filled when editing a user (testing as super Admin here), thus forcing to enter again the code Therefore, the feature MAY work in broswers in general, BUT not for Firefox Any real-world working solution is welcome. |
|
@infograf768 But such code does not exist in https://github.com/joomla/joomla-cms/blob/23d5fb7edc3046f598a8318e80777f8a1ad75985/administrator/components/com_users/tmpl/user/edit.php#L41though both com_user and com_admin give same functionality of changing passwords |
|
I am here talking about the changes I had to do to NOT get the password field already filled in
as, when it is already filled, I have to fill again the Confirm Password field each time I have to modify some details of the user, which is not expected. the code above concerns password and not password2
|
|
@infograf768 what version of FF are you using? |
last one: 65.0.1 Macintosh Clean branch install |
|
@infograf768 the added HTML markup is not the way forward here. This is: https://gist.github.com/jonathantneal/d462fc2bf761a10c9fca60eb634f6977 |
|
@dgrammatiko |
|
It works for me without applying a patch. |
|
I have tested this item ✅ successfully on f46d0a1 Also check on firefox version 69.0.2 and it worked correct. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23913. |
|
If it worked without the patch then it cant be a successsful test of the patch |
|
I have tested this item ✅ successfully on f46d0a1 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23913. |
|
No need to apply patch, it works without it. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23913. |
|
Closing as the proposed change is in the codebase and the proposed deletion is no longer there. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23913. |



Signed-off-by: Nitish Bahl [email protected]
Pull Request for Issue - Go to user menu at top right corner -> Edit account -> see that show pass icon alongside password doesn't work while that alongside confirm pass works.
Summary of Changes
Autocomplete is already false thus extra condition is not required
Expected result
Show pass field works like that in com_users
Actual result
Nothing happens when icon is clicked
Documentation Changes Required
No