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_pass(Form $form, $values) { $this->user_manager->updateUser($this->user_id, null, null, $values->password, null, null); }