ForgotPasswordController::sendResetLinkResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Microboard\Http\Controllers\Auth;
4
5
use Illuminate\Http\JsonResponse;
6
use Illuminate\Http\Request;
7
use Microboard\Http\Controllers\Controller;
8
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
9
10
class ForgotPasswordController extends Controller
11
{
12
    /*
13
    |--------------------------------------------------------------------------
14
    | Password Reset Controller
15
    |--------------------------------------------------------------------------
16
    |
17
    | This controller is responsible for handling password reset emails and
18
    | includes a trait which assists in sending these notifications from
19
    | your application to your users. Feel free to explore this trait.
20
    |
21
    */
22
23
    use SendsPasswordResetEmails;
24
25
    /**
26
     * Display the form to request a password reset link.
27
     *
28
     * @return \Illuminate\View\View
29
     */
30
    public function showLinkRequestForm()
31
    {
32
        return view('microboard::auth.passwords.email');
33
    }
34
35
    /**
36
     * Get the response for a successful password reset link.
37
     *
38
     * @param  string  $response
39
     * @return \Illuminate\Http\RedirectResponse
40
     */
41
    protected function sendResetLinkResponse($response)
42
    {
43
        return back()->with('alert', [
44
            'type' => 'success',
45
            'text' => trans($response)
46
        ]);
47
    }
48
}
49