Test Setup Failed
Push — master ( ef125c...60f940 )
by he
08:55
created

ResetPasswordController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 5
c 2
b 1
f 0
dl 0
loc 30
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A showResetForm() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace App\Http\Controllers\Auth;
4
5
use App\Http\Controllers\Controller;
6
use App\Http\Requests\Request;
7
use Illuminate\Foundation\Auth\ResetsPasswords;
8
9
class ResetPasswordController extends Controller
10
{
11
    /*
12
    |--------------------------------------------------------------------------
13
    | Password Reset Controller
14
    |--------------------------------------------------------------------------
15
    |
16
    | This controller is responsible for handling password reset requests
17
    | and uses a simple trait to include this behavior. You're free to
18
    | explore this trait and override any methods you wish to tweak.
19
    |
20
    */
21
22
    use ResetsPasswords;
0 ignored issues
show
Bug introduced by
The trait Illuminate\Foundation\Auth\ResetsPasswords requires the property $email which is not provided by App\Http\Controllers\Auth\ResetPasswordController.
Loading history...
23
24
    protected $redirectTo = '/';
25
26
    /**
27
     * Create a new controller instance.
28
     *
29
     * @return void
30
     */
31
    public function __construct()
32
    {
33
        $this->middleware('guest');
34
    }
35
36
    public function showResetForm(Request $request, $token = null)
37
    {
38
        return view('web.auth.passwords.reset')->with(['token' => $token, 'email' => $request->input('email')]);
39
    }
40
}
41