You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
408 B
18 lines
408 B
namespace YOUserbase;
|
|
|
|
public partial class LoginPage : ContentPage {
|
|
public LoginPage ()
|
|
{
|
|
InitializeComponent ();
|
|
}
|
|
|
|
private async void OnLoginClicked (object sender, EventArgs e)
|
|
{
|
|
if (UsernameEntry.Text == "admin" && UsernameEntry.Text == "admin") {
|
|
Application.Current.MainPage = new AppShell ();
|
|
} else {
|
|
await DisplayAlert ("Error", "Invalid username or password", "OK");
|
|
}
|
|
}
|
|
}
|