Add a nicer error message for 1.0 accounts.

master
Tom Hacohen 4 years ago
parent 31aa091893
commit e9a99c9404

@ -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;

Loading…
Cancel
Save