Skip to content

Commit

Permalink
Merge pull request #2 from hexfusion/txn
Browse files Browse the repository at this point in the history
Support changing user password.
  • Loading branch information
hexfusion authored May 30, 2017
2 parents 6f206ee + 9c1acf4 commit ef7996c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Net/Etcd/User.pm
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,18 @@ sub delete {
return $self;
}


=head2 changepw
$etcd->user({ name =>'foo' password => 'bar' })->changepw
=cut

sub changepw {
my $self = shift;
$self->{endpoint} = '/auth/user/changepw';
$self->request;
return $self;
}

1;

0 comments on commit ef7996c

Please sign in to comment.