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

Personal Access Token form - Missing re-populate of toggled scopes, if empty description validation error #15765

Closed
tors42 opened this issue Jul 22, 2024 · 0 comments · Fixed by #15775
Labels

Comments

@tors42
Copy link
Contributor

tors42 commented Jul 22, 2024

Exact URL of where the bug happened

https://lichess.org/account/oauth/token/create?

Steps to reproduce the bug

  1. Go to https://lichess.org/account/oauth/token/create?
  2. Toggle some scope/s, for instance "Read email address"
  3. Do NOT provide a description
  4. Click "Create"

What did you expect to happen?

A message about description not being valid,
and any toggled scope/s (from Step 2) to still be toggled,
so that fixing description and clicking Create button is all that's needed to create the token with desired scope/s

What happened instead?

The previously toggled scope/s are no longer toggled.
After fixing the description,
one must notice and toggle the scope/s again.

Operating system

Linux

Browser and version (or alternate access method)

Firefox 128

Additional information

It's an easy mistake after the validation error,
to fix the description,
but not notice that the toggles have been reset,
and then click create which leads to a scope-less token - but one believes that the token has scopes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant