Added link to account recovery for lost 2fa app

This commit is contained in:
Kyle Spearrin 2016-11-26 01:03:02 -05:00
parent 6860cca9bb
commit 320d2c5c96
3 changed files with 28 additions and 1 deletions

View file

@ -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();

View file

@ -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>

View file

@ -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>