/** * 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'); }
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'); }
/** * Get safebox code * * @return mixed */ public function doSafebox() { $this->account->safebox(Auth::user()->id); return $this->view('account.safebox.success'); }
/** * @return bool */ public function logout() { $this->account->logout(); return Redirect::guest('/'); }