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

Disable double submission in login form #410

Open
fmido88 opened this issue Feb 6, 2023 · 0 comments
Open

Disable double submission in login form #410

fmido88 opened this issue Feb 6, 2023 · 0 comments

Comments

@fmido88
Copy link

fmido88 commented Feb 6, 2023

I added the code

   require(['core_form/submit'], function(Submit) {
    Submit.init("loginbtn");
    {{#canloginasguest}}
        Submit.init("loginguestbtn");
    {{/canloginasguest}}
});

To the js code in the file login.mustache
As in the loginform.mustache in the core templates
It solved the problem of invalid login due to double submission

I hope to add it in the next update
Thanks

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