From 9beb520e3c767f07afa5ae75aa83f04ea3844577 Mon Sep 17 00:00:00 2001 From: okxint Date: Tue, 21 Jul 2026 12:35:48 +0530 Subject: [PATCH] fix(core): prevent double-submit on login flow grant page Add isSubmitting guard to onSubmit so the button is disabled and shows a loading spinner as soon as the first submit fires. A second click while the form is in-flight is dropped via event.preventDefault(). Fixes: #62327 Signed-off-by: okxint --- core/src/views/LoginFlowGrant.vue | 33 +++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/core/src/views/LoginFlowGrant.vue b/core/src/views/LoginFlowGrant.vue index b2230bf9da69c..9e3518277e373 100644 --- a/core/src/views/LoginFlowGrant.vue +++ b/core/src/views/LoginFlowGrant.vue @@ -4,11 +4,13 @@ --> @@ -90,7 +104,14 @@ async function onSubmit(event: SubmitEvent) { name="providedRedirectUri" :value="providedRedirectUri"> - + + {{ t('core', 'Grant access') }}