Docusign/updatePassword.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 56.6% 17 / 30 CC 2 SCAR 9.8
CC
2
Cov
54%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Docusign/revokeToken.pm ↑ Summary
1 package Document::eSign::Docusign::updatePassword;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 Document::eSign::Docusign::updatePassword - Used to change a user's password.
10  
11 =head1 VERSION
12  
13 Version 0.02
14  
15 =cut
16  
17 =head1 functions
18  
19 =head2 updatePassword($varshashref)
20  
21 Depending on the account settings, you may be required to supply 0 - 3 question and answer pairs.
22  
23 my $response = $ds->updatePassword(
24 {
25 currentPassword => 'OldUserPassword',
26 email => 'user@somedomain.com',
27 newPassword => 'NewUserPassword',
28 forgottenPasswordInfo => {
29 forgottenPasswordQuestion1 => 'Some question.',
30 forgottenPasswordAnswer1 => 'Some answer.',
31 forgottenPasswordQuestion2 => 'Some question.',
32 forgottenPasswordAnswer2 => 'Some answer.',
33 forgottenPasswordQuestion3 => 'Some question.',
34 forgottenPasswordAnswer3 => 'Some answer.',
35 }
36 }
37 );
38
39 =cut
40  
41 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
42 0 ▶ carp("Got login request: " . Dumper(@_)) if $_[1]->debug;
Branch: 1 branch
BranchTrueFalseTotal
if $_[1]->debug 0 0 0
43 0 my $class = shift;
44 0 my $main = shift;
45 0 my $vars = shift;
46 0 my $self = bless {}, $class;
47
48 0 my $uri = '/v2/login_information/password';
49
50 # Build the portions of the get string as needed.
51
52 0 my $creds = $main->buildCredentials();
53
54 0 my $response = $main->sendRequest('PUT', 'application/json', $creds, $main->defaultUrl . $uri, $vars);
55
56 0 return $response;
57 }
58  
59  
60 1 1;
« Docusign/revokeToken.pm ↑ Summary