1 | <?php |
||
17 | class PasswordController extends Controller |
||
18 | { |
||
19 | /* |
||
20 | |-------------------------------------------------------------------------- |
||
21 | | Password Reset Controller |
||
22 | |-------------------------------------------------------------------------- |
||
23 | | |
||
24 | | This controller is responsible for handling password reset requests |
||
25 | | and uses a simple trait to include this behavior. You're free to |
||
26 | | explore this trait and override any methods you wish to tweak. |
||
27 | | |
||
28 | */ |
||
29 | |||
30 | use ResetsPasswords { |
||
31 | postEmail as postEmailOriginal; |
||
32 | postReset as postResetOriginal; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * en = employee normal |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $custom = ['mode' => 'en']; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | protected $username = ['email', 'company_id']; |
||
45 | |||
46 | /** |
||
47 | * @var company |
||
48 | */ |
||
49 | private $company = null; |
||
50 | |||
51 | /** |
||
52 | * Create a new password controller instance. |
||
53 | * |
||
54 | */ |
||
55 | 6 | public function __construct() |
|
61 | |||
62 | 6 | public function postEmail(Request $request) |
|
69 | |||
70 | 3 | public function postReset(Request $request) |
|
77 | |||
78 | |||
79 | } |
||
80 |