| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function passes($attribute, $value) |
||
| 33 | { |
||
| 34 | if (Auth::guard(config('requirepin.auth_guard', 'web'))->user()->default_pin && !$this->allowDefaultPin) { |
||
|
|
|||
| 35 | $this->defaultPin = true; |
||
| 36 | |||
| 37 | return false; |
||
| 38 | } |
||
| 39 | |||
| 40 | return Hash::check($value, Auth::guard(config('requirepin.auth_guard', 'web'))->user()->pin); |
||
| 41 | } |
||
| 57 |