Skip to content

Commit

Permalink
[Feature] Removed google2fa::navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
janicerar committed Oct 22, 2018
1 parent 85bdafb commit 8a73472
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/Google2fa.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,8 @@ public function boot()
}

/**
* Build the view that renders the navigation links for the tool.
*
* @return \Illuminate\View\View
* @return bool
*/
public function renderNavigation()
{
return view('google2fa::navigation');
}

protected function is2FAValid()
{
$secret = Request::get('secret');
Expand All @@ -42,6 +35,10 @@ protected function is2FAValid()
return $google2fa->verifyKey(auth()->user()->user2fa->google2fa_secret, $secret);
}

/**
* @return \Illuminate\Contracts\View\Factory|\Illuminate\Http\RedirectResponse|\Illuminate\View\View
* @throws \PragmaRX\Google2FA\Exceptions\InsecureCallException
*/
public function confirm()
{
if ($this->is2FAValid()) {
Expand All @@ -68,6 +65,10 @@ public function confirm()
return view('google2fa::register', $data);
}

/**
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
* @throws \PragmaRX\Google2FA\Exceptions\InsecureCallException
*/
public function register()
{
$google2fa = new G2fa();
Expand All @@ -85,6 +86,9 @@ public function register()

}

/**
* @return \Illuminate\Contracts\Routing\ResponseFactory|\Illuminate\Contracts\View\Factory|\Illuminate\Http\RedirectResponse|\Illuminate\Http\Response|\Illuminate\View\View
*/
public function authenticate()
{
if ($recover = Request::get('recover')) {
Expand Down

0 comments on commit 8a73472

Please sign in to comment.