예제 #1
0
 /**
  * Create a new session
  *
  * @return integer
  */
 public function save(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->session->store($input);
 }
예제 #2
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function update(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->update($input);
 }
예제 #3
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']);
 }
예제 #4
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function forgot(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->forgotPassword($input);
 }
예제 #5
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function resend(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->resend($input);
 }
예제 #6
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function change(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->changePassword($input);
 }