| 1 | <?php namespace Anomaly\UsersModule\User; |
||
| 16 | class UserPassword |
||
| 17 | { |
||
| 18 | |||
| 19 | use DispatchesJobs; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Start a password reset. |
||
| 23 | * |
||
| 24 | * @param UserInterface $user |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | public function forgot(UserInterface $user) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Reset a user's password. |
||
| 34 | * |
||
| 35 | * @param UserInterface $user |
||
| 36 | * @param $code |
||
| 37 | * @param $password |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function reset(UserInterface $user, $code, $password) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param UserInterface $user |
||
| 47 | * @param string $reset |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | public function send(UserInterface $user, $reset = '/') |
||
| 54 | } |
||
| 55 |