|
|
@ -41,6 +41,8 @@ export default function LoginForm(props: PropsType) {
|
|
|
|
const fieldRequired = "This field is required!";
|
|
|
|
const fieldRequired = "This field is required!";
|
|
|
|
if (!username) {
|
|
|
|
if (!username) {
|
|
|
|
errors.errorEmail = fieldRequired;
|
|
|
|
errors.errorEmail = fieldRequired;
|
|
|
|
|
|
|
|
} else if (username.includes("@")) {
|
|
|
|
|
|
|
|
errors.errorEmail = "EteSync 2.0 account required (this looks like a 1.0 account).";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!password) {
|
|
|
|
if (!password) {
|
|
|
|
errors.errorPassword = fieldRequired;
|
|
|
|
errors.errorPassword = fieldRequired;
|
|
|
|