Skip to content

Commit

Permalink
Merge pull request #299 from nextcloud/bugfix/noid/prevent-hash-appea…
Browse files Browse the repository at this point in the history
…ring-on-action-url-when-showing-password

Prevent the hash appearing when showing the password
  • Loading branch information
nickvergessen authored Apr 21, 2021
2 parents d4194ba + b07da75 commit 7d15b90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/registration-form.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/registration-form.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/form.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
document.addEventListener('DOMContentLoaded', function() {
// Password toggle
$('#showadminpass').click(() => {
$('#showadminpass').click((e) => {
e.preventDefault()
const passwordTextField = $('#password')
if (passwordTextField.attr('type') === 'password') {
passwordTextField.attr('type', 'text')
Expand Down

0 comments on commit 7d15b90

Please sign in to comment.