feat: sua added to group invitations
All checks were successful
ci / lint_and_test (push) Successful in 13s
All checks were successful
ci / lint_and_test (push) Successful in 13s
Issue: #23
This commit is contained in:
parent
7809df4c5a
commit
768a3881ef
4 changed files with 110 additions and 3 deletions
|
|
@ -182,7 +182,7 @@ async def accept_invitation(
|
|||
request_model: UserPostInvitationAcceptRequest,
|
||||
):
|
||||
email_claims = await decode_jwt(request_model.jwt)
|
||||
claimed_email = email_claims["user_email"]
|
||||
claimed_email = email_claims["email"]
|
||||
|
||||
if user_model.email != claimed_email:
|
||||
raise UnauthorizedException("The logged in user and email do not match.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue