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

Unable to reset a password by a user with a space in their username #2417

Open
McLaynV opened this issue Jul 6, 2024 · 0 comments
Open

Unable to reset a password by a user with a space in their username #2417

McLaynV opened this issue Jul 6, 2024 · 0 comments

Comments

@McLaynV
Copy link

McLaynV commented Jul 6, 2024

Description

When a user has a space in their username, they are unable to reset a forgotten password.

It looks like some URL (un)escaping issue.

Version

  • Grav v1.7.46
  • Admin v1.10.46

Steps to reproduce

  • Go to https://HOSTNAME/admin/accounts/users/:add to add a new user and fill the form:
    • Username: test T
    • Email: (your email address)
    • Full name: Testor Testorson (or anything else)
  • Go to https://HOSTNAME/admin/forgot to reset a password
    • Username: test T
  • Check your email and go to the reset URL
    • For example: https://HOSTNAME/admin/reset/u/test T/fd16523e91eab7acc748ed01715b1d4c
    • Username is now pre-filled with test%20t (the username is URL-encoded with the space replaced with %20)
    • When you fill a new password and press the button, the RESET_INVALID_LINK error message is shown
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

No branches or pull requests

1 participant