1 | <?php |
||
9 | class Password extends Provider |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $loginRequiredFor = [ |
||
15 | 'change', |
||
16 | ]; |
||
17 | |||
18 | /** |
||
19 | * Ask for password reset link in email |
||
20 | * |
||
21 | * @param string $user Username or user mail |
||
22 | * @return bool |
||
23 | */ |
||
24 | public function sendResetLink($user) |
||
31 | |||
32 | /** |
||
33 | * Set a new password by link from reset password email |
||
34 | * |
||
35 | * @param string $link |
||
36 | * @param string $newPassword |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function reset($link, $newPassword) |
||
68 | |||
69 | /** |
||
70 | * @param string $oldPassword |
||
71 | * @param string $newPassword |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function change($oldPassword, $newPassword) |
||
84 | |||
85 | /** |
||
86 | * @return mixed |
||
87 | */ |
||
88 | protected function parseCurrentUrl() |
||
96 | } |
||
97 |