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

to avoid CSRF error due to multiple click #3085

Merged
merged 1 commit into from Oct 20, 2023
Merged

Conversation

QThans
Copy link
Contributor

@QThans QThans commented Oct 6, 2023

Description of the issue/feature this PR addresses:
If the network is terrible, the user clicks rapidly and many times, it will show a CSRF error because the last time click had the wrong CSRF token.

Current behavior before PR:
You can click the login button multiple times in the login page to submit multiple times to the login api.

Desired behavior after PR is merged:
after you click one time, the submit button be disabled. after the current request has been processed, you can click again.

If the network is terrible, the user clicks rapidly and many times, it will show a CSRF error because the last time click had the wrong CSRF token.
@Spitfireap Spitfireap added this to the 2.2.2 milestone Oct 16, 2023
@tonioo tonioo merged commit 11716f0 into modoboa:master Oct 20, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants