mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Socket
This commit is contained in:
parent
58192cacb3
commit
0847395c92
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user