From e4c3852c3c71c4e52a88478ccfdfe4b137b21a3d Mon Sep 17 00:00:00 2001 From: ysmoradi Date: Sat, 20 Apr 2024 21:38:26 +0200 Subject: [PATCH] fix --- .../Components/Pages/Identity/ForgotPasswordPage.razor.cs | 6 +----- .../Components/Pages/Identity/SignInPage.razor.cs | 6 +----- .../Components/Pages/Identity/SignUpPage.razor.cs | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/ForgotPasswordPage.razor.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/ForgotPasswordPage.razor.cs index 19e975e72e..9d9e442fd3 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/ForgotPasswordPage.razor.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/ForgotPasswordPage.razor.cs @@ -43,13 +43,9 @@ private async Task DoSubmit() forgotPasswordMessage = e.Message; } - catch - { - await JSRuntime.GoogleRecaptchaReset(); - throw; - } finally { + await JSRuntime.GoogleRecaptchaReset(); isLoading = false; } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.cs index 6861527666..439cd6747b 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.cs @@ -51,13 +51,9 @@ private async Task DoSignIn() signInMessage = e.Message; } - catch - { - await JSRuntime.GoogleRecaptchaReset(); - throw; - } finally { + await JSRuntime.GoogleRecaptchaReset(); isLoading = false; } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor.cs index 608d0af9b7..68ca2becd0 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor.cs @@ -71,13 +71,9 @@ private async Task DoResendLink() signUpMessage = e.Message; signUpMessageType = BitMessageBarType.Error; } - catch - { - await JSRuntime.GoogleRecaptchaReset(); - throw; - } finally { + await JSRuntime.GoogleRecaptchaReset(); isLoading = false; } }