line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Moo; |
3
|
2
|
|
|
2
|
|
151068
|
use utf8; |
|
2
|
|
|
|
|
7133
|
|
|
2
|
|
|
|
|
10
|
|
4
|
2
|
|
|
2
|
|
2098
|
use namespace::clean; |
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
15
|
|
5
|
2
|
|
|
2
|
|
479
|
|
|
2
|
|
|
|
|
12160
|
|
|
2
|
|
|
|
|
18
|
|
6
|
|
|
|
|
|
|
with 'Dancer2::Plugin::FormValidator::Role::Validator'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
return { |
9
|
|
|
|
|
|
|
en => '%s must be minimum 8 characters long and contain at least one letter and one number', |
10
|
|
|
|
|
|
|
ru => '%s должен иметь длину не менее 8 символов и состоять хотя бы из одной буквы и числа', |
11
|
1
|
|
|
1
|
0
|
1856
|
de => '%s muss mindestens 8 Zeichen lang sein und mindestens einen Buchstaben und eine Zahl enthalten', |
12
|
|
|
|
|
|
|
}; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my ($self, $field, $input) = @_; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
if ($self->_field_defined_and_non_empty($field, $input)) { |
18
|
3
|
|
|
3
|
0
|
594
|
return $input->{$field} =~ /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d\@\$!%*#?&]{8,}$/; |
19
|
|
|
|
|
|
|
} |
20
|
3
|
50
|
|
|
|
14
|
|
21
|
3
|
|
|
|
|
58
|
return 1; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
1; |