public async static Task AsyncInsertTempPassword(string temp) { var m = new PasswordTemp { CreatedOn = DateTime.Now, HashedPassword = temp }; await GetTempCollection().InsertOneAsync(m); }
public List <string> FindInvalid(PasswordTemp passwordTemp) { List <ValidationResult> results = new List <ValidationResult>() { this.Result(passwordTemp.OldPassword, " * Isian password harus sesuai dengan password lama."), this.Result(passwordTemp.NewPassword, " * [Password] terdiri dari minimum 8 digit.", Enumerable.Range(8, 18)) }; IEnumerable <string> found = from result in results where (result.IsValid == false) select result.ErrorContent as string; List <string> errorList = found.ToList(); return(errorList); }
public ManageProfilePresenter(AppPresenter appPresenter, ManageProfileView view) : base(view, "TabHeader") { this._appPresenter = appPresenter; this._isIdle = true; this._currentUser = appPresenter.CurrentLogin; this._currentUserTemp = new User() { Id = appPresenter.CurrentLogin.Id, Name = appPresenter.CurrentLogin.Name, Password = appPresenter.CurrentLogin.Password, Accessibility = appPresenter.CurrentLogin.Accessibility, PhotoPath = appPresenter.CurrentLogin.PhotoPath, Status = appPresenter.CurrentLogin.Status }; this._currentPasswordTemp = null; }
public void ClearDetail() { this.CurrentPasswordTemp = new PasswordTemp(); }