Page MenuHomePhabricator

D6182.id20931.diff
No OneTemporary

D6182.id20931.diff

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
@@ -171,6 +171,10 @@
setErrorMessage('alphanumeric usernames only');
usernameInputRef.current?.focus();
return;
+ } else if (password === '') {
+ setErrorMessage('password is empty');
+ usernameInputRef.current?.focus();
+ return;
}
const extraInfo = loginExtraInfo();
@@ -181,7 +185,7 @@
({ calendarQuery: extraInfo.calendarQuery }: LogInStartingPayload),
);
},
- [dispatchActionPromise, logInAction, loginExtraInfo, username],
+ [dispatchActionPromise, logInAction, loginExtraInfo, username, password],
);
const loginButtonContent = React.useMemo(() => {

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 8:57 PM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2678232
Default Alt Text
D6182.id20931.diff (821 B)

Event Timeline