diff --git a/lib/NGCP/Panel/Utils/Subscriber.pm b/lib/NGCP/Panel/Utils/Subscriber.pm index c5b1474fc4..435318116f 100644 --- a/lib/NGCP/Panel/Utils/Subscriber.pm +++ b/lib/NGCP/Panel/Utils/Subscriber.pm @@ -332,7 +332,14 @@ sub prepare_resource { } } + #if webpassword hasn't changed, it means that nothing has been done to it via PUT/PATCH, and it comes encrypted from the database + #so we're deleting it here for form's length validation and then reassigning it to the resource + my $webpassword; + $webpassword = delete $resource->{webpassword} if ( $resource->{webpassword} && $item && + $resource->{webpassword} eq $item->provisioning_voip_subscriber->webpassword ); return unless &$validate_code($resource); + $resource->{webpassword} = $webpassword if ($webpassword); + #my ($form) = $self->get_form($c); #return unless $self->validate_form( # c => $c,