This commit is contained in:
KernelDeimos 2024-04-14 23:10:23 -04:00
parent 58192cacb3
commit 0847395c92

View File

@ -110,6 +110,11 @@ const CHANGE_EMAIL_CONFIRM = eggspress('/change_email/confirm', {
[new_email, user_id]
);
let socketio = require('../socketio.js').getio();
if(socketio){
socketio.to(user.id).emit('user.email_changed', {})
}
const h = `<p style="text-align:center; color:green;">Your email has been successfully confirmed.</p>`;
return res.send(h);
});