Converted the account system to an auth system
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
const emailRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
|
||||
module.exports = email => {
|
||||
return emailRegex.test(email);
|
||||
}
|
||||
Reference in New Issue
Block a user