Pass the RIGHT token to email

This commit is contained in:
KernelDeimos 2024-04-14 22:49:51 -04:00
parent 5b39e39e1f
commit b81284e2c6

View File

@ -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,
}); });