willianmano / moodle-theme_moove

A Moodle Boost child theme
GNU General Public License v3.0
171 stars 157 forks source link

Disable double submission in login form #410

Open fmido88 opened 1 year ago

fmido88 commented 1 year ago

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