diff options
author | levinse <levinse> | 2010-11-29 19:26:11 +0000 |
---|---|---|
committer | levinse <levinse> | 2010-11-29 19:26:11 +0000 |
commit | b5e0da582040e3737d72b388059874b4cbf2e78e (patch) | |
tree | 7d7c1bf7576b5a99bfde717c36160df94ac886e0 | |
parent | 6997df0c2498bda94deeac4eee480af33135b9dd (diff) |
fix password change response
-rw-r--r-- | lib/Net/Ikano.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Net/Ikano.pm b/lib/Net/Ikano.pm index ab62bf4..43b5b06 100644 --- a/lib/Net/Ikano.pm +++ b/lib/Net/Ikano.pm @@ -254,9 +254,10 @@ sub req_PASSWORDCHANGE { sub resp_PASSWORDCHANGE { my ($self, $resphash, $reqhash) = (shift, shift); - return "invalid change password response" - unless defined $resphash->{ChangePasswordResponse}; - return $resphash->{ChangePasswordResponse}; + return "invalid change password response" + unless defined $resphash->{ChangePasswordResponse} + && defined $resphash->{ChangePasswordResponse}->{Customer}; + $resphash->{ChangePasswordResponse}->{Customer}; } sub req_PREQUAL { |