Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function test($value) |
||
22 | { |
||
23 | $user = User::where('email', $this->email)->first(); |
||
24 | |||
25 | if (!$user) { |
||
26 | $this->message = 'Wypełnij poprawnie adres email'; |
||
27 | return false; |
||
28 | } |
||
29 | |||
30 | if (password_verify($value, $user->password)) { |
||
31 | return true; |
||
32 | } |
||
33 | |||
34 | return false; |
||
35 | } |
||
36 | } |
||
37 |