mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 17:50:00 -06:00
Socket
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user