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(); }
public static bool PromptIfInvalid(View RootView, IFullAppUser User) => PromptIfInvalid(RootView, User.Email, User.Password, User.Phone, User.Username);
public static bool IsValidUser(IFullAppUser User) => IsValidUser(User.Email, User.Password, User.Phone, User.Username);
public static string ValidateUser(IFullAppUser User) => ValidateUser(User.Email, User.Password, User.Phone, User.Username);