Ejemplo n.º 1
0
 /**
  * Create a new session
  *
  * @return integer
  */
 public function save(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->session->store($input);
 }
Ejemplo n.º 2
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function change(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->changePassword($input);
 }
Ejemplo n.º 3
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function forgot(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->forgotPassword($input);
 }
Ejemplo n.º 4
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function update(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->update($input);
 }
Ejemplo n.º 5
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function resend(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->resend($input);
 }
Ejemplo n.º 6
0
 /**
  * Process the requested action
  *
  * @return integer
  */
 public function suspend(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->suspend($input['id'], $input['minutes']);
 }