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:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user