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.
15 lines
450 B
15 lines
450 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");
|
|
}
|
|
}
|
|
} |