Test Failed
Push — dev6 ( e3f62b...d58043 )
by Ron
17:13
created

ResetPasswordController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 1
1
<?php
2
3
namespace App\Http\Controllers\Auth;
4
5
use Inertia\Inertia;
6
use Illuminate\Http\Request;
7
8
use App\Http\Controllers\Controller;
9
10
class ResetPasswordController extends Controller
11
{
12
    /**
13
     *  For users with reset token to allow user to reset their password
14
     */
15
    public function __invoke(Request $request)
16
    {
17
        return Inertia::render('Auth/password/reset', [
18
            'token' => $request->token,
19
            'email' => $request->email,
20
        ]);
21
    }
22
}
23