1 | <?php |
||
2 | |||
3 | /** |
||
4 | * RequestedNewPassword.php |
||
5 | * Copyright (c) 2018 [email protected] |
||
6 | * |
||
7 | * This file is part of Firefly III. |
||
8 | * |
||
9 | * Firefly III is free software: you can redistribute it and/or modify |
||
10 | * it under the terms of the GNU General Public License as published by |
||
11 | * the Free Software Foundation, either version 3 of the License, or |
||
12 | * (at your option) any later version. |
||
13 | * |
||
14 | * Firefly III is distributed in the hope that it will be useful, |
||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
17 | * GNU General Public License for more details. |
||
18 | * |
||
19 | * You should have received a copy of the GNU General Public License |
||
20 | * along with Firefly III. If not, see <http://www.gnu.org/licenses/>. |
||
21 | */ |
||
22 | |||
23 | declare(strict_types=1); |
||
24 | |||
25 | namespace FireflyIII\Events; |
||
26 | |||
27 | use FireflyIII\User; |
||
28 | use Illuminate\Queue\SerializesModels; |
||
29 | |||
30 | /** |
||
31 | * Class RequestedNewPassword. |
||
32 | * |
||
33 | * @codeCoverageIgnore |
||
34 | */ |
||
35 | class RequestedNewPassword extends Event |
||
36 | { |
||
37 | use SerializesModels; |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
38 | |||
39 | /** @var string The users IP address */ |
||
40 | public $ipAddress; |
||
41 | /** @var string The token */ |
||
42 | public $token; |
||
43 | /** @var User The user */ |
||
44 | public $user; |
||
45 | |||
46 | /** |
||
47 | * Create a new event instance. This event is triggered when a users tries to reset his or her password. |
||
48 | * |
||
49 | * @param User $user |
||
50 | * @param string $token |
||
51 | * @param string $ipAddress |
||
52 | */ |
||
53 | public function __construct(User $user, string $token, string $ipAddress) |
||
54 | { |
||
55 | $this->user = $user; |
||
56 | $this->token = $token; |
||
57 | $this->ipAddress = $ipAddress; |
||
58 | } |
||
59 | } |
||
60 |