Page MenuHomePhabricator

[web] Ensure that `[primary/notification]IdentityPublicKeys` are set in `TraditionalLoginForm`
ClosedPublic

Authored by atul on Feb 23 2023, 9:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 4:00 PM
Unknown Object (File)
Apr 4 2024, 11:32 PM
Unknown Object (File)
Apr 4 2024, 11:31 PM
Unknown Object (File)
Apr 4 2024, 11:31 PM
Unknown Object (File)
Apr 4 2024, 11:24 PM
Unknown Object (File)
Feb 21 2024, 2:07 PM
Unknown Object (File)
Feb 21 2024, 9:12 AM
Unknown Object (File)
Feb 21 2024, 9:12 AM
Subscribers
None

Details

Summary

Ensure that primaryIdentityPublicKeys and notificationIdentityPublicKeys are set before enabling TraditionalLoginForm. Also pass both keypairs to user-actions:logIn(...), but pull them out from restLogInInfo to ensure we don't break keyserver request input validation.


Depends on D6880

Test Plan

Still able to log in to account from both web and native.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 23 2023, 9:25 PM
Harbormaster failed remote builds in B16866: Diff 23045!
atul requested review of this revision.Feb 23 2023, 10:04 PM

Accepting to unblock, but not clear why we're sending primaryIdentityPublicKey up twice

web/account/traditional-login-form.react.js
87 ↗(On Diff #23045)

Why are we still passing this in?

This revision is now accepted and ready to land.Feb 24 2023, 8:17 AM
web/account/traditional-login-form.react.js
87 ↗(On Diff #23045)

All the primaryIdentityPublicKey stuff gets ripped out in later diff. First want to get all the identity keys persisted in ServerDB and then will remove the olds stuff.