Skip to content

Commit

Permalink
Better phrasing of one comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Sep 24, 2024
1 parent be93253 commit 66a20a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/LexBoxApi/Controllers/UserController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public async Task<ActionResult<LexAuthUser>> AcceptEmailInvitation(RegisterAccou
var jwtUser = _loggedInContext.User;
if (jwtUser.Email != accountInput.Email)
{
// Someone is trying to reuse a JWT belonging to someone else. Naughty, naughty...
// Changing email address in invite links is not allowed; this prevents someone from trying to reuse a JWT belonging to somebody else
ModelState.AddModelError<RegisterAccountInput>(r => r.Email, "email address mismatch in invitation link");
return ValidationProblem(ModelState);
}
Expand Down

0 comments on commit 66a20a1

Please sign in to comment.