2018-10-04 19:10:43 +02:00
|
|
|
<?php
|
2019-05-11 05:32:07 +02:00
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2021-01-03 22:54:54 +01:00
|
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
namespace App\Http\Controllers\Auth;
|
|
|
|
|
2020-09-06 11:38:10 +02:00
|
|
|
use Illuminate\Foundation\Auth\VerifiesEmails;
|
2018-10-15 07:00:48 +02:00
|
|
|
use Illuminate\Routing\Controller;
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
class VerificationController extends Controller
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Email Verification Controller
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This controller is responsible for handling email verification for any
|
|
|
|
| user that recently registered with the application. Emails may also
|
2018-10-15 07:00:48 +02:00
|
|
|
| be resent if the user did not receive the original email message.
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
use VerifiesEmails;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Where to redirect users after verification.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2018-10-17 14:26:27 +02:00
|
|
|
protected $redirectTo = '/dashboard';
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new controller instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->middleware('auth');
|
|
|
|
$this->middleware('signed')->only('verify');
|
|
|
|
$this->middleware('throttle:6,1')->only('verify', 'resend');
|
|
|
|
}
|
|
|
|
}
|