diff options
author | Marcel Müller <marcel-mueller@gmx.de> | 2023-01-22 11:56:31 +0100 |
---|---|---|
committer | Marcel Müller <marcel-mueller@gmx.de> | 2023-01-23 19:51:10 +0100 |
commit | bbb490de5ea22c50e08b9fa8c788ae7ba7de8e20 (patch) | |
tree | 4a4bcf935bb83f560486f769c17ca8b8967848be | |
parent | 2ff877f105c235a08f0fd887d75bddfbbc6cf624 (diff) | |
download | nextcloud-server-bbb490de5ea22c50e08b9fa8c788ae7ba7de8e20.tar.gz nextcloud-server-bbb490de5ea22c50e08b9fa8c788ae7ba7de8e20.zip |
Fix event listener race condition on login-form
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
-rw-r--r-- | core/js/login/authpicker.js | 2 | ||||
-rw-r--r-- | core/templates/loginflow/authpicker.php | 2 | ||||
-rw-r--r-- | core/templates/loginflowv2/authpicker.php | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/core/js/login/authpicker.js b/core/js/login/authpicker.js index 8aaaf3d7361..1a94b02d72f 100644 --- a/core/js/login/authpicker.js +++ b/core/js/login/authpicker.js @@ -10,4 +10,6 @@ jQuery(document).ready(function() { e.preventDefault(); document.location.href = e.target.attributes.action.value }) + + $('#login-form input').removeAttr('disabled'); }) diff --git a/core/templates/loginflow/authpicker.php b/core/templates/loginflow/authpicker.php index 68c53818a92..3f78081921d 100644 --- a/core/templates/loginflow/authpicker.php +++ b/core/templates/loginflow/authpicker.php @@ -47,7 +47,7 @@ $urlGenerator = $_['urlGenerator']; <p id="redirect-link"> <form id="login-form" action="<?php p($urlGenerator->linkToRoute('core.ClientFlowLogin.grantPage', ['stateToken' => $_['stateToken'], 'clientIdentifier' => $_['clientIdentifier'], 'oauthState' => $_['oauthState'], 'user' => $_['user'], 'direct' => $_['direct']])) ?>" method="get"> - <input type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Log in')) ?>"> + <input type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Log in')) ?>" disabled> </form> </p> diff --git a/core/templates/loginflowv2/authpicker.php b/core/templates/loginflowv2/authpicker.php index b7ff617bd30..0e18cc99ce1 100644 --- a/core/templates/loginflowv2/authpicker.php +++ b/core/templates/loginflowv2/authpicker.php @@ -47,7 +47,7 @@ $urlGenerator = $_['urlGenerator']; <p id="redirect-link"> <form id="login-form" action="<?php p($urlGenerator->linkToRouteAbsolute('core.ClientFlowLoginV2.grantPage', ['stateToken' => $_['stateToken'], 'user' => $_['user']])) ?>" method="get"> - <input type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Log in')) ?>"> + <input type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Log in')) ?>" disabled> </form> </p> |