Skip to content

Commit

Permalink
fix: Add 'session_bound=False' for the skey during email verification (
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneGudermann authored Aug 14, 2023
1 parent 9e6d95e commit 9465ab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/viur/core/modules/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ def add(self, *args, **kwargs):
skel.toDB()
if self.registrationEmailVerificationRequired and skel["status"] == Status.WAITING_FOR_EMAIL_VERIFICATION:
# The user will have to verify his email-address. Create a skey and send it to his address
skey = securitykey.create(duration=60 * 60 * 24 * 7, userKey=utils.normalizeKey(skel["key"]),
skey = securitykey.create(duration=60 * 60 * 24 * 7, session_bound=False,
userKey=utils.normalizeKey(skel["key"]),
name=skel["name"])
skel.skey = BaseBone(descr="Skey")
skel["skey"] = skey
Expand Down

0 comments on commit 9465ab2

Please sign in to comment.