Page MenuHomePhabricator

D10816.id36829.diff
No OneTemporary

D10816.id36829.diff

diff --git a/web/account/traditional-login-form.react.js b/web/account/traditional-login-form.react.js
--- a/web/account/traditional-login-form.react.js
+++ b/web/account/traditional-login-form.react.js
@@ -31,7 +31,7 @@
function TraditionalLoginForm(): React.Node {
const inputDisabled = useSelector(loadingStatusSelector) === 'loading';
const loginExtraInfo = useSelector(logInExtraInfoSelector);
- const callLogIn = useLogIn();
+ const callLegacyLogIn = useLogIn();
const dispatchActionPromise = useDispatchActionPromise();
const modalContext = useModalContext();
@@ -66,7 +66,7 @@
const [errorMessage, setErrorMessage] = React.useState<string>('');
- const logInAction = React.useCallback(
+ const legacyLogInAction = React.useCallback(
async (extraInfo: LogInExtraInfo) => {
const signedIdentityKeysBlob = await getSignedIdentityKeysBlob();
try {
@@ -75,7 +75,7 @@
'signedIdentityKeysBlob must be set in logInAction',
);
- const result = await callLogIn({
+ const result = await callLegacyLogIn({
...extraInfo,
username,
password,
@@ -96,7 +96,13 @@
throw e;
}
},
- [callLogIn, modalContext, password, getSignedIdentityKeysBlob, username],
+ [
+ callLegacyLogIn,
+ modalContext,
+ password,
+ getSignedIdentityKeysBlob,
+ username,
+ ],
);
const onSubmit = React.useCallback(
@@ -120,12 +126,18 @@
}
void dispatchActionPromise(
logInActionTypes,
- logInAction(loginExtraInfo),
+ legacyLogInAction(loginExtraInfo),
undefined,
({ calendarQuery: loginExtraInfo.calendarQuery }: LogInStartingPayload),
);
},
- [dispatchActionPromise, logInAction, loginExtraInfo, username, password],
+ [
+ dispatchActionPromise,
+ legacyLogInAction,
+ loginExtraInfo,
+ username,
+ password,
+ ],
);
const loginButtonContent = React.useMemo(() => {

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 28, 3:31 PM (8 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2721444
Default Alt Text
D10816.id36829.diff (1 KB)

Event Timeline