mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Pass the RIGHT token to email
This commit is contained in:
parent
5b39e39e1f
commit
b81284e2c6
@ -70,7 +70,7 @@ const CHANGE_EMAIL_START = eggspress('/change_email/start', {
|
|||||||
// send confirmation email
|
// send confirmation email
|
||||||
const svc_email = req.services.get('email');
|
const svc_email = req.services.get('email');
|
||||||
await svc_email.send_email({ email: new_email }, 'email_change_request', {
|
await svc_email.send_email({ email: new_email }, 'email_change_request', {
|
||||||
confirm_url: `${config.origin}/change_email/confirm?token=${token}`,
|
confirm_url: `${config.origin}/change_email/confirm?token=${jwt_token}`,
|
||||||
username: user.username,
|
username: user.username,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user