Now base64-encoding the selfservice tokens👀 #12

Merged
niggl merged 1 commits from bugfix/11-selfservice_profile_link into dev 2021-03-31 17:46:00 +00:00
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,7 @@ export class Mailer {
*/
public async sendWelcomeMail(to_address: string, token: string, locale: string = "en") {
await i18next.changeLanguage(locale);
token = Buffer.from(token).toString("base64");
const replacements = {
recipient_mail: to_address,
@ -159,6 +160,7 @@ export class Mailer {
*/
public async sendSelfserviceForgottenMail(to_address: string, token: string, locale: string = "en") {
await i18next.changeLanguage(locale);
token = Buffer.from(token).toString("base64");
const replacements = {
recipient_mail: to_address,