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

ResetPasswordController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * Auth/Password Reset 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\ResetsPasswords;
19
20
/**
21
 * Reset Password Controller.
22
 *
23
 * This controller is responsible for handling password reset requests
24
 * and uses a simple trait to include this behavior. You're free to
25
 * explore this trait and override any methods you wish to tweak.
26
 *
27
 * @since 0.0.0-framework introduced
28
 */
29
class ResetPasswordController extends AbstractController
30
{
31
    use ResetsPasswords;
32
33
    /**
34
     * Where to redirect users after resetting their password.
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('guest');
50
    }
51
}
52