private async Task <bool> AutoLogin(string _username, string _password) { try { string result = await FirebaseHandler.Login(_username, _password); return(result.Equals("Logging In")); } catch (Exception) { return(false); } }
private async Task loginTask() { string response = await FirebaseHandler.Login(et_idCard.Text, et_password.Text); if (response.Equals("Logging In")) //Account is good { Console.WriteLine("Logging In"); if (chkRemember.IsChecked) { SaveAutoLogin().Wait(); } await Navigation.PushAsync(new MainActivity()); } else { validationText.Text = response; } }