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
|
|
|
|
*
|
2022-04-27 05:20:41 +02:00
|
|
|
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
2021-06-16 08:58:16 +02:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2019-05-11 05:32:07 +02:00
|
|
|
*/
|
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');
|
|
|
|
}
|
|
|
|
}
|