Enforce minimum password lengths.

agranig/1_0_subfix
Andreas Granig 13 years ago
parent 98c9a17fb5
commit d9ff6d5555

@ -10,8 +10,8 @@ sub build_render_list {[qw/submitid fields actions/]}
sub build_form_element_class {[qw(form-horizontal)]}
has_field 'id' => (type => 'Hidden');
has_field 'login' => (type => 'Text', required => 1,);
has_field 'md5pass' => (type => 'Password', required => 1, label => 'Password');
has_field 'login' => (type => 'Text', required => 1, minlength => 5);
has_field 'md5pass' => (type => 'Password', required => 1, label => 'Password', minlength => 6);
for (qw(is_active show_passwords call_data)) {
has_field $_ => (type => 'Boolean', default => 1);
}

@ -41,6 +41,7 @@ has_field 'webpassword' => (
type => 'Text',
label => 'Web Password',
required => 0,
minlength => 6,
element_attr => {
rel => ['tooltip'],
title => ['The password to log into the CSC Panel']
@ -110,6 +111,7 @@ has_field 'password' => (
type => 'Text',
label => 'SIP Password',
required => 1,
minlength => 6,
element_attr => {
rel => ['tooltip'],
title => ['The SIP password for the User-Agents']

@ -37,6 +37,7 @@ has_field 'webpassword' => (
type => 'Text',
label => 'Web Password',
required => 0,
minlength => 6,
element_attr => {
rel => ['tooltip'],
title => ['The password to log into the CSC Panel']
@ -161,6 +162,7 @@ has_field 'password' => (
type => 'Text',
label => 'SIP Password',
required => 1,
minlength => 6,
element_attr => {
rel => ['tooltip'],
title => ['The SIP password for the User-Agents']

Loading…
Cancel
Save