private function canSetPassword(LoginDatabaseModel $model) { if ($model->getPassword() != $model->getConfirmPassword()) { LogHelper::getInstance()->logUserError("passwords do not match"); return false; } $failure = PasswordHelper::getInstance()->checkPassword($model->getPassword()); if ($failure !== true) { LogHelper::getInstance()->logUserError(PasswordHelper::getInstance()->evaluateFailure($failure)); return false; } return true; }
public function getDatabaseArray() { $props = array("Email" => $this->getEmail(), "PersonId" => $this->getPersonId()); return array_merge($props, parent::getDatabaseArray()); }