Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
1 | <?php namespace Modules\User\Commands\Handlers; |
||
34 | public function handle($command) |
||
35 | { |
||
36 | $this->input = $command; |
||
37 | |||
38 | $user = $this->findUser(); |
||
39 | |||
40 | if (!$this->auth->completeResetPassword($user, $this->input->code, $this->input->password)) { |
||
41 | throw new InvalidOrExpiredResetCode(); |
||
42 | } |
||
43 | |||
44 | return $user; |
||
45 | } |
||
46 | |||
57 |