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

Autocomplete attribute on login, register and password_reset #100

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

janic0
Copy link
Contributor

@janic0 janic0 commented Dec 25, 2024

This PR is a small improvement for the input fields on the login, register and password_reset pages.
It signals password managers to use

  • current-password for login
  • new-password for register and password_reset

See documentation for the autocomplete attribute here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#new-password

Warning

The forms on all three pages currently have autocomplete="off". It is unclear to me why this is the case, but this PR will have no effect as long as autocompletion is turned off at the form level.

@ColdHeat
Copy link
Member

My apologies I forgot about this PR

@ColdHeat
Copy link
Member

It looks like autocomplete has been part of the form for a long time.

@ColdHeat
Copy link
Member

I think it's okay to remove autocomplete=off. If I had to guess, I likely just copied the HTML from some bootstrap documentation and it just never got removed.

Thank you for reporting the issue.

@ColdHeat ColdHeat merged commit 7382ca5 into CTFd:main Jan 31, 2025
1 check passed
@janic0
Copy link
Contributor Author

janic0 commented Jan 31, 2025

Hi @ColdHeat, thanks for processing this!

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.

2 participants