mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +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
|
||||
const svc_email = req.services.get('email');
|
||||
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,
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user