Ejemplo n.º 1
0
        private void onSubmit(object obj)
        {
            user.Username = username;
            user.Password = password;
            List <User> allUsers = _validateUserService.getAllUsers();

            if (_validateUserService.ValidateUser(allUsers, user))
            {
                _navigation.NavigateAsync(nameof(AllToddlersView));
            }
            else
            {
                App.Current.MainPage.DisplayAlert("Failed login", "Not Authorized", "Ok");
                _navigation.NavigateAsync(nameof(LoginView));
            }
        }
Ejemplo n.º 2
0
 public Response ValidateUser([FromBody] ValidateUserRequest request)
 {
     return(_service.ValidateUser(request));
 }