🚸 reset verify state on successful subscribe

This commit is contained in:
DrMaxNix 2024-02-17 22:33:06 +01:00
parent cdc4c5f2f9
commit 3eb5826189
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@
if($success){
$entry_key = ["list", $mail_address];
// remove from verify list
$newsletter_db->unset(["verify_list", sha1($mail_address)]);
// generate unsubscribe key
$unsubscribe_key = Id64::new(length: 16);