Test Setup Failed
Pull Request — master (#150)
by Nick
14:47 queued 06:28
created

VerificationController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 23
ccs 0
cts 5
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
/**
3
 * Auth/Verification Controller.
4
 *
5
 * @package App\Http\Controllers\Auth
6
 *
7
 * @author    Taylor Otwell <[email protected]>
8
 * @copyright 2018-2020 Nick Menke
9
 *
10
 * @link https://github.com/nlmenke/vertebrae
11
 */
12
13
declare(strict_types=1);
14
15
namespace App\Http\Controllers\Auth;
16
17
use App\Http\Controllers\AbstractController;
18
use Illuminate\Foundation\Auth\VerifiesEmails;
19
20
/**
21
 * Email Verification Controller.
22
 *
23
 * This controller is responsible for handling email verification for any
24
 * user that recently registered with the application. Emails may also
25
 * be resent if the user didn't receive the original email message.
26
 *
27
 * @since 0.0.0-framework introduced
28
 */
29
class VerificationController extends AbstractController
30
{
31
    use VerifiesEmails;
32
33
    /**
34
     * Where to redirect users after verification.
35
     *
36
     * @var string
37
     */
38
    protected $redirectTo = '/home';
39
40
    /**
41
     * Create a new controller instance.
42
     *
43
     * @return void
44
     */
45
    public function __construct()
46
    {
47
        parent::__construct();
48
49
        $this->middleware('auth');
50
        $this->middleware('signed')->only('verify');
51
        $this->middleware('throttle:6,1')->only('verify', 'resend');
52
    }
53
}
54