Skip to content

Commit

Permalink
[PM-3726] prevent legacy user login (#2769)
Browse files Browse the repository at this point in the history
* [PM-3726] prevent legacy user login

* [PM-3726] prevent unlock or auto key migration if legacy user

* [PM-3726] add legacy checks to lock page and refactor

* [PM-3726] rethrow exception from pin

* formatting

* [PM-3726] add changes to LockViewController, consolidate logout calls

* formatting

* [PM-3726] pr feedback

* generate resx

* formatting

(cherry picked from commit c4f6ae9)
  • Loading branch information
jlf0dev committed Sep 21, 2023
1 parent 0f634ff commit 99e64b4
Show file tree
Hide file tree
Showing 11 changed files with 5,505 additions and 6,095 deletions.
361 changes: 219 additions & 142 deletions src/App/Pages/Accounts/LockPageViewModel.cs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/App/Pages/Accounts/LoginPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ await _platformUtilsService.ShowDialogAsync(

await _deviceActionService.HideLoadingAsync();

if (response.RequiresEncryptionKeyMigration)
{
// Legacy users must migrate on web vault.
await _platformUtilsService.ShowDialogAsync(AppResources.EncryptionKeyMigrationRequiredDescriptionLong, AppResources.AnErrorHasOccurred,
AppResources.Ok);
return;
}

if (response.TwoFactor)
{
StartTwoFactorAction?.Invoke();
Expand Down
Loading

0 comments on commit 99e64b4

Please sign in to comment.