Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Cerbero\Auth\Jobs; |
||
39 | public function handle(UserRepositoryInterface $users, Hasher $hasher) |
||
40 | { |
||
41 | if( ! $user = $users->findByResetToken($this->token)) |
||
42 | { |
||
43 | throw new DisplayException('auth::reset.error'); |
||
44 | } |
||
45 | |||
46 | $users->resetPassword($user, $hasher->make($this->password)); |
||
47 | } |
||
48 | |||
50 |