Duoble click login - TokenMismatchException in VerifyCsrfToken.php
Hi, i have a problem with Laravel Auth. When I login first time to my system everything is alright, but if i logout and I try to login with accidentally double click on login button I get error (TokenMismatchException in VerifyCsrfToken.php line 46:) .
perhaps you could disable the login button after the first click and then re-enable it if there was a problem?
when you login for the first time, what happens if you double clikc the login? i expect you should still get TokenMismatch, logging out & back in is a red herring I think?
@shez1983 I tried to disabled like this
$("#login").one('click', function (event) {
$(this).prop('disabled', true);
});
Login for the first time it does not matter , one or duoble clicks, everything work fine.