login validation
This commit is contained in:
parent
3c333bc5ea
commit
9dc3ada60e
@ -31,9 +31,11 @@ const Login = (props: any) => {
|
||||
|
||||
const authorizationHandler = (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
signUp
|
||||
if (email.length > 0 && password.length > 0) {
|
||||
signUp
|
||||
? props.auth(email, password, true)
|
||||
: props.auth(email, password, false);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user