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

[stable12] Fix password displayed as username in Firefox password manager dialog #7797

merged 3 commits into from Jan 24, 2018


None yet
3 participants

danxuliu commented Jan 11, 2018

Backport of #7709

danxuliu and others added some commits Jan 5, 2018

Fix password displayed as username in Firefox password manager dialog
When finishing the setup of Nextcloud through the WebUI (setting admin
user and database) Firefox offers to save the username and password.
However, the password was shown in both the username and password fields
of the Firefox password manager dialog.

The problem was that the password input element (in the HTML form) is
cloned in a text input element, which is used to show the password in
plain text when clicking on the "Show password" button. As it was a text
input immediately followed by a password input Firefox seemed to assume
that it had to be the username and ignored the real username field, no
matter the value set for the "autocomplete" attribute. Now the cloned
text input is added after the password input, so Firefox no longer
thinks that the cloned text input is the username field and the password
manager dialog shows the proper username instead.

Signed-off-by: Daniel Calviño Sánchez <>
Bump strengthify to 0.5.3
Signed-off-by: Roeland Jago Douma <>
Add strengthify bar after plain text input clone of password input
To show the password in plain text "showPassword" adds a text input
after the password input and swaps their visibility depending on whether
the password has to be shown in plain text or not. In a similar way,
"strengthify" by default adds the strength bar after the input element
it was called on. Due to this, if "showPassword" is called before
"strengthify" on the same password input then the strength bar ends
between the password input and the text input, and when the text input
is shown it appears below the strength bar.

To fix this now the strength bar is added after the text input in those
places in which "strengthify" was called after "showPassword" on the
same element.

Signed-off-by: Daniel Calviño Sánchez <>

This comment has been minimized.


MorrisJobke commented Jan 11, 2018

Let's wait with this for 12.0.6


This comment has been minimized.


rullzer commented Jan 24, 2018

12.0.6 is here! Review review review :)

@MorrisJobke MorrisJobke merged commit b42d8ca into stable12 Jan 24, 2018

1 of 2 checks passed

continuous-integration/drone/push the build failed
continuous-integration/drone/pr the build was successful

@MorrisJobke MorrisJobke deleted the stable12-7709-fix-password-displayed-as-username-in-password-manager branch Jan 24, 2018

@MorrisJobke MorrisJobke referenced this pull request Mar 9, 2018


12.0.6 RC 1 #8750

2 of 2 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment