1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-20 02:03:49 +00:00

load login page after registration

This commit is contained in:
Kyle Spearrin
2019-06-04 23:07:35 -04:00
parent b67adf8789
commit b29ccf67b1
4 changed files with 28 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
using Bit.App.Utilities;
using System;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace Bit.App.Pages
@@ -13,6 +14,12 @@ namespace Bit.App.Pages
_logo.Source = theme == "dark" || theme == "black" ? "logo_white.png" : "logo.png";
}
public async Task DismissRegisterPageAndLogInAsync(string email)
{
await Navigation.PopModalAsync();
await Navigation.PushModalAsync(new NavigationPage(new LoginPage(email)));
}
private void LogIn_Clicked(object sender, EventArgs e)
{
if(DoOnce())
@@ -25,7 +32,7 @@ namespace Bit.App.Pages
{
if(DoOnce())
{
Navigation.PushModalAsync(new NavigationPage(new RegisterPage()));
Navigation.PushModalAsync(new NavigationPage(new RegisterPage(this)));
}
}