Skip to content

Commit ff1e8fa

Browse files
authored
Remove expiration of e-mail confirmation token (#450)
* Allow 1 week for e-mail confirmation * Do not expire email confirmation token
1 parent 3933af3 commit ff1e8fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gramps_webapi/api/resources/user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ def post(self, args, user_name: str):
343343
"email": args["email"],
344344
CLAIM_LIMITED_SCOPE: SCOPE_CONF_EMAIL,
345345
},
346-
# email has to be confirmed within 1h
347-
expires_delta=datetime.timedelta(hours=1),
346+
# link does not expire
347+
expires_delta=False,
348348
)
349349
run_task(send_email_confirm_email, email=args["email"], token=token)
350350
return "", 201

0 commit comments

Comments
 (0)