mirror of
https://github.com/nextcloud/server.git
synced 2026-02-11 14:54:02 -05:00
Fix event listener race condition on login-form
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
78076c6d4a
commit
651a00a962
3 changed files with 4 additions and 2 deletions
|
|
@ -10,4 +10,6 @@ jQuery(document).ready(function() {
|
|||
e.preventDefault();
|
||||
document.location.href = e.target.attributes.action.value
|
||||
})
|
||||
|
||||
$('#login-form input').removeAttr('disabled');
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue