family login fixed
This commit was merged in pull request #287.
This commit is contained in:
@@ -77,15 +77,14 @@ export default function Login() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//checks if email is a valid email address
|
|
||||||
let regEx = /^[^0-9][a-zA-Z0-9._%+-]+@[a-zA-Z]+(\.[a-zA-Z]+)+$/;
|
|
||||||
if (regEx.test(email) == false) {
|
|
||||||
setLoginLoading(false);
|
|
||||||
setMsgError("Invalid Email");
|
|
||||||
return setTimeout(()=>{setMsgError("");},3000)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (name == "full") {
|
if (name == "full") {
|
||||||
|
//checks if email is a valid email address
|
||||||
|
let regEx = /^[^0-9][a-zA-Z0-9._%+-]+@[a-zA-Z]+(\.[a-zA-Z]+)+$/;
|
||||||
|
if (regEx.test(email) == false) {
|
||||||
|
setLoginLoading(false);
|
||||||
|
setMsgError("Invalid Email");
|
||||||
|
return setTimeout(()=>{setMsgError("");},3000)
|
||||||
|
}
|
||||||
// Post Data Info for normal Login
|
// Post Data Info for normal Login
|
||||||
postData = {
|
postData = {
|
||||||
username: email,
|
username: email,
|
||||||
|
|||||||
Reference in New Issue
Block a user