public function checkEmail($email) { if ($this->user_manager->getUserByEmail($email->value)) { return false; } return true; }
public function success_form(Form $form, $values) { $file = $values->img; if ($file->getError()) { $file = null; } $this->user_manager->updateUser($this->user_id, $values->name, $values->email, $values->password, null, $file); }
public function success_form_add(Form $form, $values) { $file = $values->img; if ($file->getError()) { $file = null; } $this->user_manager->createAccount($values->username, $values->email, $values->password, $values->role, $file); }
public function success_form_pass(Form $form, $values) { $this->user_manager->updateUser($this->user_id, null, null, $values->password, null, null); }