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