mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
Added link to account recovery for lost 2fa app
This commit is contained in:
parent
6860cca9bb
commit
320d2c5c96
3 changed files with 28 additions and 1 deletions
|
@ -75,9 +75,19 @@ namespace Bit.App.Pages
|
|||
Margin = new Thickness(15, (this.IsLandscape() ? 5 : 0), 15, 25)
|
||||
};
|
||||
|
||||
var lostAppButton = new ExtendedButton
|
||||
{
|
||||
Text = AppResources.Lost2FAApp,
|
||||
Style = (Style)Application.Current.Resources["btn-primaryAccent"],
|
||||
Margin = new Thickness(15, 0, 15, 25),
|
||||
Command = new Command(() => Lost2FAApp()),
|
||||
Uppercase = false,
|
||||
BackgroundColor = Color.Transparent
|
||||
};
|
||||
|
||||
var layout = new StackLayout
|
||||
{
|
||||
Children = { table, codeLabel },
|
||||
Children = { table, codeLabel, lostAppButton },
|
||||
Spacing = 0
|
||||
};
|
||||
|
||||
|
@ -105,6 +115,11 @@ namespace Bit.App.Pages
|
|||
CodeCell.Entry.FocusWithDelay();
|
||||
}
|
||||
|
||||
private void Lost2FAApp()
|
||||
{
|
||||
Device.OpenUri(new Uri("https://vault.bitwarden.com/#/recover"));
|
||||
}
|
||||
|
||||
private async void Entry_Completed(object sender, EventArgs e)
|
||||
{
|
||||
await LogIn();
|
||||
|
|
9
src/App/Resources/AppResources.Designer.cs
generated
9
src/App/Resources/AppResources.Designer.cs
generated
|
@ -979,6 +979,15 @@ namespace Bit.App.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Lost authenticator app?.
|
||||
/// </summary>
|
||||
public static string Lost2FAApp {
|
||||
get {
|
||||
return ResourceManager.GetString("Lost2FAApp", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Manage.
|
||||
/// </summary>
|
||||
|
|
|
@ -741,4 +741,7 @@
|
|||
<data name="WebVaultDescription" xml:space="preserve">
|
||||
<value>Manage your logins from any web browser with the bitwarden web vault.</value>
|
||||
</data>
|
||||
<data name="Lost2FAApp" xml:space="preserve">
|
||||
<value>Lost authenticator app?</value>
|
||||
</data>
|
||||
</root>
|
Loading…
Reference in a new issue