From e4458c5c0e91066e578eb86a15d70806b6927d71 Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Tue, 17 Oct 2023 10:22:50 +0700 Subject: [PATCH] change var name for activity --- backend/LexBoxApi/Controllers/LoginController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/LexBoxApi/Controllers/LoginController.cs b/backend/LexBoxApi/Controllers/LoginController.cs index 20241a5bd..dd86679fd 100644 --- a/backend/LexBoxApi/Controllers/LoginController.cs +++ b/backend/LexBoxApi/Controllers/LoginController.cs @@ -112,9 +112,9 @@ public async Task Logout() [ProducesDefaultResponseType] public async Task ForgotPassword(ForgotPasswordInput input) { - using var registerActivity = LexBoxActivitySource.Get().StartActivity("ForgotPassword"); + using var activity = LexBoxActivitySource.Get().StartActivity(); var validToken = await _turnstileService.IsTokenValid(input.TurnstileToken, input.Email); - registerActivity?.AddTag("app.turnstile_token_valid", validToken); + activity?.AddTag("app.turnstile_token_valid", validToken); if (!validToken) { ModelState.AddModelError(r => r.TurnstileToken, "token invalid");