Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3565043
D10816.id36829.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10816.id36829.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10816: [web] rename callLogIn -> callLegacyLogIn
Attached
Detach File
Event Timeline
Log In to Comment