feat: removal of emailExists socket listener

This commit is contained in:
Julian Lam
2021-06-14 16:34:16 -04:00
parent 04b1f702cd
commit 12b2a979a0
3 changed files with 2 additions and 46 deletions

View File

@@ -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]]');