Skip to content

Commit

Permalink
Remove expiration of e-mail confirmation token (#450)
Browse files Browse the repository at this point in the history
* Allow 1 week for e-mail confirmation

* Do not expire email confirmation token
  • Loading branch information
DavidMStraub authored Nov 11, 2023
1 parent 3933af3 commit ff1e8fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gramps_webapi/api/resources/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ def post(self, args, user_name: str):
"email": args["email"],
CLAIM_LIMITED_SCOPE: SCOPE_CONF_EMAIL,
},
# email has to be confirmed within 1h
expires_delta=datetime.timedelta(hours=1),
# link does not expire
expires_delta=False,
)
run_task(send_email_confirm_email, email=args["email"], token=token)
return "", 201
Expand Down

0 comments on commit ff1e8fa

Please sign in to comment.