Skip to content

Commit

Permalink
update disabled plugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykenedy committed Jan 22, 2018
1 parent 7df5020 commit 2ca767a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/app/Http/Controllers/TwoStepController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ private function invalidCodeReturnData($errors = null)
*/
public function showVerification()
{
if (!config('laravel2step.laravel2stepEnabled')) {
abort(404);
}

$twoStepAuth = $this->_twoStepAuth;
$authStatus = $this->_authStatus;

Expand Down Expand Up @@ -140,6 +144,10 @@ public function showVerification()
*/
public function verify(Request $request)
{
if (!config('laravel2step.laravel2stepEnabled')) {
abort(404);
}

if($request->ajax()) {

$validator = Validator::make($request->all(), [
Expand Down Expand Up @@ -187,11 +195,13 @@ public function verify(Request $request)
*/
public function resend()
{
if (!config('laravel2step.laravel2stepEnabled')) {
abort(404);
}

$twoStepAuth = $this->_twoStepAuth;
$this->sendVerificationCodeNotification($twoStepAuth);



$returnData = [
'title' => trans('laravel2step::laravel-verification.verificationEmailSuccess'),
'message' => trans('laravel2step::laravel-verification.verificationEmailSentMsg'),
Expand Down

0 comments on commit 2ca767a

Please sign in to comment.