/** * @author LAHAXE Arnaud * * * @return mixed */ public function authData() { if ($this->u2f->check()) { return $this->redirectAfterSuccessAuth(); } $req = $this->u2f->getAuthenticateData(\Auth::user()); \Event::fire('u2f.authentication.data', ['user' => \Auth::user()]); \Session::set('u2f.authenticationData', $req); return view($this->config->get('u2f.authenticate.view'))->with('authenticationData', $req); }