コード例 #1
0
ファイル: LoginForm.php プロジェクト: alograg/Sentinel
 /**
  * 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 change(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->changePassword($input);
 }
コード例 #3
0
 /**
  * Create a new user
  *
  * @return integer
  */
 public function forgot(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->forgotPassword($input);
 }
コード例 #4
0
ファイル: UserForm.php プロジェクト: marmaray/L4withSentry
 /**
  * Create a new user
  *
  * @return integer
  */
 public function update(array $input)
 {
     if (!$this->valid($input)) {
         return false;
     }
     return $this->user->update($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
 /**
  * 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']);
 }