/**
  * Confirm account creation
  *
  * @param $user
  * @param $token
  * @return mixed
  */
 public function confirm($user, $token)
 {
     if (!$this->account->confirmAccount($user, $token)) {
         return $this->view('account.register.fail');
     }
     return $this->view('account.register.confirm');
 }
Example #2
0
 public function all()
 {
     $accounts = $this->account->search(Input::all());
     return $this->transformer->transformPagination($accounts);
 }
 /**
  * Confirm the generated password
  *
  * @param $user
  * @param $token
  * @return mixed
  */
 public function confirm($user, $token)
 {
     $this->account->confirmNewPassword($user, $token);
     return $this->view('account.password-reset.confirm');
 }
 /**
  * Clear sessions
  *
  * @return mixed
  */
 public function logout()
 {
     $this->account->logout();
     return Redirect::route('home');
 }
Example #5
0
 /**
  * Get safebox code
  *
  * @return mixed
  */
 public function doSafebox()
 {
     $this->account->safebox(Auth::user()->id);
     return $this->view('account.safebox.success');
 }
Example #6
0
 /**
  * @return bool
  */
 public function logout()
 {
     $this->account->logout();
     return Redirect::guest('/');
 }