Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33074777
D6673.1768446873.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6673.1768446873.diff
View Options
diff --git a/lib/types/account-types.js b/lib/types/account-types.js
--- a/lib/types/account-types.js
+++ b/lib/types/account-types.js
@@ -108,6 +108,7 @@
+username: string,
+password: string,
+logInActionSource: LogInActionSource,
+ +primaryIdentityPublicKey?: string,
};
export type LogInRequest = {
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
@@ -238,12 +238,19 @@
};
async logInAction(extraInfo: LogInExtraInfo): Promise<LogInResult> {
+ const { primaryIdentityPublicKey } = this.props;
try {
+ invariant(
+ primaryIdentityPublicKey !== null &&
+ primaryIdentityPublicKey !== undefined,
+ 'primaryIdentityPublicKey must exist in logInAction',
+ );
const result = await this.props.logIn({
...extraInfo,
username: this.usernameInputText,
password: this.passwordInputText,
logInActionSource: logInActionSources.logInFromNativeForm,
+ primaryIdentityPublicKey: primaryIdentityPublicKey,
});
this.props.setActiveAlert(false);
await setNativeCredentials({
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 15, 3:14 AM (17 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5935642
Default Alt Text
D6673.1768446873.diff (1 KB)
Attached To
Mode
D6673: [native] Include `primaryIdentityPublicKey` in `log_in` request
Attached
Detach File
Event Timeline
Log In to Comment