-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(login): Disable login button when already logging in #45352
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
fix(login): Disable login button when already logging in #45352
Conversation
|
To prevent double submit through enter we could adjust LoginForm.vue and ignore form submit while loading=true as well. Apparently this would be possible with a disabled field set: https://stackoverflow.com/questions/3507958/how-can-i-make-an-entire-html-form-readonly |
|
Right, I didn’t think of enter. Let me adjust the PR |
I tried that, but then I am unable to login in any way (it always ends up in a temporary error). Therefore I prevented another submit of the form, as we already have a submit handler. |
Signed-off-by: Marcel Müller <[email protected]>
Signed-off-by: Marcel Müller <[email protected]>
53f09bd to
f6e6d7a
Compare
|
/compile |
Signed-off-by: nextcloud-command <[email protected]>
Summary
Fixes "State token does not match" in some cases (e.g. double click on the login button)
How to reproduce:
Before
After
Checklist