diff --git a/lib/NGCP/Panel/Form/Administrator/Reseller.pm b/lib/NGCP/Panel/Form/Administrator/Reseller.pm index a81fa602cf..521e1bc3bf 100644 --- a/lib/NGCP/Panel/Form/Administrator/Reseller.pm +++ b/lib/NGCP/Panel/Form/Administrator/Reseller.pm @@ -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); } diff --git a/lib/NGCP/Panel/Form/Subscriber.pm b/lib/NGCP/Panel/Form/Subscriber.pm index 22bb9c40f7..6174a01fce 100644 --- a/lib/NGCP/Panel/Form/Subscriber.pm +++ b/lib/NGCP/Panel/Form/Subscriber.pm @@ -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'] diff --git a/lib/NGCP/Panel/Form/SubscriberEdit.pm b/lib/NGCP/Panel/Form/SubscriberEdit.pm index 75cad189d3..502aa44f13 100644 --- a/lib/NGCP/Panel/Form/SubscriberEdit.pm +++ b/lib/NGCP/Panel/Form/SubscriberEdit.pm @@ -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']