Page MenuHomePhabricator

D5258.diff
No OneTemporary

D5258.diff

diff --git a/native/account/log-in-panel.react.js b/native/account/log-in-panel.react.js
--- a/native/account/log-in-panel.react.js
+++ b/native/account/log-in-panel.react.js
@@ -11,11 +11,12 @@
validEmailRegex,
oldValidUsernameRegex,
} from 'lib/shared/account-utils';
-import type {
- LogInInfo,
- LogInExtraInfo,
- LogInResult,
- LogInStartingPayload,
+import {
+ type LogInInfo,
+ type LogInExtraInfo,
+ type LogInResult,
+ type LogInStartingPayload,
+ loginActionSources,
} from 'lib/types/account-types';
import type { LoadingStatus } from 'lib/types/loading-types';
import {
@@ -249,9 +250,10 @@
async logInAction(extraInfo: LogInExtraInfo): Promise<LogInResult> {
try {
const result = await this.props.logIn({
+ ...extraInfo,
username: this.usernameInputText,
password: this.passwordInputText,
- ...extraInfo,
+ source: loginActionSources.logInFromNativeForm,
});
this.props.setActiveAlert(false);
await setNativeCredentials({

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 10:49 AM (20 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611388
Default Alt Text
D5258.diff (1 KB)

Event Timeline