public async void Login(string username, string password) { IsLoggingIn = true; var isAuth = await _wordPressService.AuthenticateUser(username, password); if (!isAuth) { ShowLoginError = true; } IsLoggingIn = false; }
public async void Login(string username, string password) { IsLoggingIn = true; if (!String.IsNullOrEmpty(username) && !String.IsNullOrEmpty(password)) { var isAuth = await _wordPressService.AuthenticateUser(username, password); if (!isAuth) { ShowLoginError = true; } } IsLoggingIn = false; }