Esempio n. 1
0
 protected bool IsValid()
 {
     return(!string.IsNullOrWhiteSpace(Username) && !string.IsNullOrWhiteSpace(Password) && !string.IsNullOrWhiteSpace(Email) && ValidatorUtils.IsValidEmail(Email) &&
            !DuplicateEmail && !DuplicateUsername);
 }
 public Task<bool> ValidateLoginAndPasswordAsync(string login, string password)
 {
     return ValidatorUtils.IsValidEmail(login) ? ValidateEmailAndPasswordAsync(login, password) : ValidateUsernameAndPasswordAsync(login, password);
 }