mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-03 07:48:46 +08: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]
|
[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>`;
|
const h = `<p style="text-align:center; color:green;">Your email has been successfully confirmed.</p>`;
|
||||||
return res.send(h);
|
return res.send(h);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user