Ejemplo n.º 1
0
 public function checkEmail($email)
 {
     if ($this->user_manager->getUserByEmail($email->value)) {
         return false;
     }
     return true;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 public function success_form_pass(Form $form, $values)
 {
     $this->user_manager->updateUser($this->user_id, null, null, $values->password, null, null);
 }