Beispiel #1
0
 public async Task CreateStoreAsync(IFullAppUser User)
 {
     try
     {
         using HttpResponseMessage Res = await Const.GlobalHttpClient.PostAsJsonAsync("Auth/users/addcustomer", User);
         if (Res.IsSuccessStatusCode)
         {
             using HttpContent content = Res.Content;
             User = await content.ReadAsAsync<FullStoreUser>();
             this.AuthResult = new AuthResult(User);
             this.NotifySuccess();
         }
         else
         {
             throw new InvalidCredentialException();
         }
     }
     catch (Exception ex)
     {
         this.NotifyError(ex);
     }
 }
 void ResolveDependencies()
 {
     Authenticator = App.DiContainer.Resolve <IObservableClientAuthenticator>();
     Customer      = new FullCustomerUser();
 }
Beispiel #3
0
 public static bool PromptIfInvalid(View RootView, IFullAppUser User)
 => PromptIfInvalid(RootView, User.Email, User.Password, User.Phone, User.Username);
Beispiel #4
0
 public static bool IsValidUser(IFullAppUser User) => IsValidUser(User.Email, User.Password, User.Phone, User.Username);
Beispiel #5
0
 public static string ValidateUser(IFullAppUser User) => ValidateUser(User.Email, User.Password, User.Phone, User.Username);