ConfirmPasswordController::redirectTo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Microboard\Http\Controllers\Auth;
4
5
use Microboard\Http\Controllers\Controller;
6
use Illuminate\Foundation\Auth\ConfirmsPasswords;
7
8
class ConfirmPasswordController extends Controller
9
{
10
    /*
11
    |--------------------------------------------------------------------------
12
    | Confirm Password Controller
13
    |--------------------------------------------------------------------------
14
    |
15
    | This controller is responsible for handling password confirmations and
16
    | uses a simple trait to include the behavior. You're free to explore
17
    | this trait and override any functions that require customization.
18
    |
19
    */
20
21
    use ConfirmsPasswords;
22
23
    /**
24
     * Where to redirect users when the intended url fails.
25
     */
26
    protected function redirectTo()
27
    {
28
        return url(config('microboard.routes.prefix'));
29
    }
30
31
    /**
32
     * Create a new controller instance.
33
     */
34
    public function __construct()
35
    {
36
        $this->middleware('auth');
37
    }
38
39
    /**
40
     * Display the password confirmation view.
41
     *
42
     * @return \Illuminate\View\View
43
     */
44
    public function showConfirmForm()
45
    {
46
        return view('microboard::auth.passwords.confirm');
47
    }
48
}
49