예제 #1
0
        public async void Login(string username, string password)
        {
            IsLoggingIn = true;
            var isAuth = await _wordPressService.AuthenticateUser(username, password);

            if (!isAuth)
            {
                ShowLoginError = true;
            }
            IsLoggingIn = false;
        }
예제 #2
0
        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;
        }