mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
feat: removal of emailExists socket listener
This commit is contained in:
@@ -43,13 +43,6 @@ SocketUser.deleteAccount = async function (socket, data) {
|
||||
await api.users.deleteAccount(socket, data);
|
||||
};
|
||||
|
||||
SocketUser.emailExists = async function (socket, data) {
|
||||
if (!data || !data.email) {
|
||||
throw new Error('[[error:invalid-data]]');
|
||||
}
|
||||
return await user.email.exists(data.email);
|
||||
};
|
||||
|
||||
SocketUser.emailConfirm = async function (socket) {
|
||||
if (!socket.uid) {
|
||||
throw new Error('[[error:no-privileges]]');
|
||||
|
||||
Reference in New Issue
Block a user