HomePhabricator
Diffusion Comm 14c84c549caf

[keyserver] Move accepting policies on siwe registration

Description

[keyserver] Move accepting policies on siwe registration

Summary:
issue: ENG-8047
We want to use the new way, introduced in D11780: accept the policies inside processSuccessfulLogin by setting the shouldMarkPoliciesAsAcceptedAfterCookieCreation flag

Test Plan:
Tested that when a new user registeres, they don't see the policies modal - the policies were correctly accepted
Tested that if I only remove the call to viewerAcknowledgmentUpdater from processSIWEAccountCreation, but don't set the flag, then the new user does see the policies modal.
Tested that if I set policies as not accepeter for a user and login, they see the modal

Reviewers: ashoat, tomek

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D11918

Details

Provenance
inkaAuthored on May 7 2024, 3:05 AM
Reviewer
ashoat
Differential Revision
D11918: [keyserver] Move accepting policies on siwe registration
Parents
rCOMM7e3803fc86fc: [keyserver] Create olm session before creating a cookie in createAccount
Branches
Unknown
Tags
Unknown