1
|
|
|
<?php namespace Arcanesoft\Auth\Http\Controllers\Front; |
2
|
|
|
|
3
|
|
|
use Arcanesoft\Auth\Bases\Controller; |
4
|
|
|
use Illuminate\Foundation\Auth\ResetsPasswords; |
5
|
|
|
use Illuminate\Http\Request; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class ResetPasswordController |
9
|
|
|
* |
10
|
|
|
* @package Arcanesoft\Auth\Http\Controllers\Front |
11
|
|
|
* @author ARCANEDEV <[email protected]> |
12
|
|
|
*/ |
13
|
|
|
class ResetPasswordController extends Controller |
14
|
|
|
{ |
15
|
|
|
/* ------------------------------------------------------------------------------------------------ |
16
|
|
|
| Traits |
17
|
|
|
| ------------------------------------------------------------------------------------------------ |
18
|
|
|
*/ |
19
|
|
|
use ResetsPasswords; |
20
|
|
|
|
21
|
|
|
/* ------------------------------------------------------------------------------------------------ |
22
|
|
|
| Constructor |
23
|
|
|
| ------------------------------------------------------------------------------------------------ |
24
|
|
|
*/ |
25
|
|
|
/** |
26
|
|
|
* Create a new controller instance. |
27
|
|
|
*/ |
28
|
|
|
public function __construct() |
29
|
|
|
{ |
30
|
|
|
$this->middleware('guest'); |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
/* ------------------------------------------------------------------------------------------------ |
34
|
|
|
| Main Functions |
35
|
|
|
| ------------------------------------------------------------------------------------------------ |
36
|
|
|
*/ |
37
|
|
|
/** |
38
|
|
|
* Display the password reset view for the given token. |
39
|
|
|
* |
40
|
|
|
* If no token is present, display the link request form. |
41
|
|
|
* |
42
|
|
|
* @param \Illuminate\Http\Request $request |
43
|
|
|
* @param string|null $token |
44
|
|
|
* |
45
|
|
|
* @return \Illuminate\Contracts\View\Factory |
46
|
|
|
*/ |
47
|
|
|
public function showResetForm(Request $request, $token = null) |
48
|
|
|
{ |
49
|
|
|
return view('auth::public.passwords.reset')->with( |
50
|
|
|
['token' => $token, 'email' => $request->get('email')] |
51
|
|
|
); |
52
|
|
|
} |
53
|
|
|
} |
54
|
|
|
|