diff --git a/web/account/log-in-form.react.js b/web/account/log-in-form.react.js --- a/web/account/log-in-form.react.js +++ b/web/account/log-in-form.react.js @@ -100,6 +100,10 @@ setErrorMessage('alphanumeric usernames only'); usernameInputRef.current?.focus(); return; + } else if (password === '') { + setErrorMessage('password is empty'); + usernameInputRef.current?.focus(); + return; } const extraInfo = loginExtraInfo(); @@ -110,7 +114,7 @@ ({ calendarQuery: extraInfo.calendarQuery }: LogInStartingPayload), ); }, - [dispatchActionPromise, logInAction, loginExtraInfo, username], + [dispatchActionPromise, logInAction, loginExtraInfo, username, password], ); const loginButtonContent = React.useMemo(() => {