Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit d03a07f

Browse files
authored
Merge pull request #76 from silinternational/feature/prevent-login-form-double-submission
Prevent re-submissions of the login form
2 parents 1dd203c + da12066 commit d03a07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/material/core/loginuserpass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function onRecaptchaLoad() {
4444
<main class="mdl-layout__content" layout-children="column" child-spacing="center">
4545
<?php include __DIR__ . '/../common-announcement.php' ?>
4646

47-
<form method="post" autocomplete="off">
47+
<form method="post" autocomplete="off" onsubmit="event.target.onsubmit = event => event.preventDefault()">
4848
<input type="hidden" name="AuthState" value="<?= htmlentities($this->data['stateparams']['AuthState']) ?>" />
4949

5050
<?php

0 commit comments

Comments
 (0)