1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-10 05:13:31 +00:00

[SG-666][SG-667] Email is not prefilled and username isn't generated automatically (#2109)

* SG-666 SG-667 - Email is now prefilled for plus addressed email username type
* Username is auto generated upon navigation

* SG-666 - Fixed PR comments
* Added missing property initialization
This commit is contained in:
Carlos Gonçalves
2022-10-03 16:51:22 +01:00
committed by GitHub
parent 90e0b5dcf0
commit a890ee6612
2 changed files with 38 additions and 17 deletions

View File

@@ -605,6 +605,8 @@ namespace Bit.App.Pages
return;
}
var website = Cipher?.Login?.Uris?.FirstOrDefault()?.Host;
var page = new GeneratorPage(false, async (username) =>
{
try
@@ -617,7 +619,7 @@ namespace Bit.App.Pages
{
OnGenerateUsernameException(ex);
}
}, isUsernameGenerator: true, emailWebsite: Cipher?.Name, editMode: true);
}, isUsernameGenerator: true, emailWebsite: website, editMode: true);
await Page.Navigation.PushModalAsync(new NavigationPage(page));
}