Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 2 | public function submitPolicy(PasswordPolicyRequest $request) |
|
17 | { |
||
18 | 2 | (new PasswordPolicy)->setPolicy($request); |
|
19 | 2 | Log::notice('User '.Auth::user()->full_name.' updated User Password Policy requiring resets every '.$request->expire.' days'); |
|
20 | |||
21 | 2 | return response()->json(['success' => true]); |
|
22 | } |
||
24 |