Skip to content

Commit

Permalink
change var name for activity
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Oct 17, 2023
1 parent 12b436d commit e4458c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/LexBoxApi/Controllers/LoginController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ public async Task<ActionResult> Logout()
[ProducesDefaultResponseType]
public async Task<ActionResult> 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<ForgotPasswordInput>(r => r.TurnstileToken, "token invalid");
Expand Down

0 comments on commit e4458c5

Please sign in to comment.