Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Anomaly\UsersModule\User\Validation; |
||
24 | public function handle(Guard $guard, UserAuthenticator $authenticator, ChangePasswordFormBuilder $builder) |
||
25 | { |
||
26 | $credentials = [ |
||
27 | 'email' => $guard->user()->email, |
||
28 | 'password' => $builder->getFormValues()->get('password_old'), |
||
29 | ]; |
||
30 | |||
31 | if (! $response = $authenticator->authenticate($credentials)) { |
||
32 | return false; |
||
33 | } |
||
34 | |||
35 | return true; |
||
36 | } |
||
37 | } |
||
38 |