line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Moo; |
3
|
2
|
|
|
2
|
|
156725
|
use utf8; |
|
2
|
|
|
|
|
6774
|
|
|
2
|
|
|
|
|
12
|
|
4
|
2
|
|
|
2
|
|
2083
|
use namespace::clean; |
|
2
|
|
|
|
|
14
|
|
|
2
|
|
|
|
|
36
|
|
5
|
2
|
|
|
2
|
|
483
|
|
|
2
|
|
|
|
|
12207
|
|
|
2
|
|
|
|
|
26
|
|
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
|
1844
|
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
|
580
|
return $input->{$field} =~ /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d\@\$!%*#?&]{8,}$/; |
19
|
|
|
|
|
|
|
} |
20
|
3
|
50
|
|
|
|
12
|
|
21
|
3
|
|
|
|
|
55
|
return 1; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
1; |