Merge pull request 'Now base64-encoding the selfservice tokens👀' (#12) from bugfix/11-selfservice_profile_link into dev
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #12
This commit is contained in:
commit
5ff6f77daf
|
@ -126,6 +126,7 @@ export class Mailer {
|
||||||
*/
|
*/
|
||||||
public async sendWelcomeMail(to_address: string, token: string, locale: string = "en") {
|
public async sendWelcomeMail(to_address: string, token: string, locale: string = "en") {
|
||||||
await i18next.changeLanguage(locale);
|
await i18next.changeLanguage(locale);
|
||||||
|
token = Buffer.from(token).toString("base64");
|
||||||
|
|
||||||
const replacements = {
|
const replacements = {
|
||||||
recipient_mail: to_address,
|
recipient_mail: to_address,
|
||||||
|
@ -159,6 +160,7 @@ export class Mailer {
|
||||||
*/
|
*/
|
||||||
public async sendSelfserviceForgottenMail(to_address: string, token: string, locale: string = "en") {
|
public async sendSelfserviceForgottenMail(to_address: string, token: string, locale: string = "en") {
|
||||||
await i18next.changeLanguage(locale);
|
await i18next.changeLanguage(locale);
|
||||||
|
token = Buffer.from(token).toString("base64");
|
||||||
|
|
||||||
const replacements = {
|
const replacements = {
|
||||||
recipient_mail: to_address,
|
recipient_mail: to_address,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user