Closed dasistwas closed 6 years ago
Implemented this without adding fields to the table and the added complexity. Every user has something that can (basically) not be guessed, we use the timestamp of the first moodle access. Combined this with a known, the userid, and calculated a hash, this is the key to allow unsubscription.
If 4 occurs I would ask the user to contact an admin, this would be highly suspicious. 2 and 3 is implemented, will be testing on monday.
The only missing part now is to send users that have unsubscribed a mail, do you have a mailtext in mind that we should use? Functionality is implemented and ready.
You were successfully unsubscribed from the newsletter $a->nameofnewsletter. If you did this on purpose, there is nothing more to do. If you did accidentally unsubscribe, you can resubscribe now under the following link: $a->subscriptionlink
Sie wurden erfolgreich vom Newsletter "newslettername" abgemeldet. Sollten Sie das auch wirklich gewollt haben, müssen Sie nichts weiter zu machen. Sollten Sie sich unabsichtlich abgemeldet haben, können Sie sich unter folgendem Link wieder für den Newsletter anmelden: $a->subscriptionlink.
Auch noch Anrede: Hallo Vorname Nachname, Hello Firstname Lastname.
OK finished this one. Works fine.
The unsubscription link has to be encrypted in order to not be able to guess the link or to transfer user data with the link. Possible workflow for implementing this feature: