diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-04-18 03:33:24 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-04-18 03:33:24 +0200 |
commit | 7b2df0cb8d29ba835be5d645f8b4f70b74b2fcc4 (patch) | |
tree | 4def1fd7d13b8885568421696c606c12217ad622 /lib | |
parent | c7cc448801f8b6f10cdd0d86568180687173f03e (diff) |
fripost-passwd is LDAP ready.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Fripost/Schema.pm | 4 | ||||
-rw-r--r-- | lib/Fripost/Schema/Type/User.pm | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Fripost/Schema.pm b/lib/Fripost/Schema.pm index 22c6064..288aa1e 100755 --- a/lib/Fripost/Schema.pm +++ b/lib/Fripost/Schema.pm @@ -92,10 +92,10 @@ sub add { } -sub password { +sub passwd { my $self = shift; if ( $self->{_type} == MAILBOX ) { - $self->Fripost::Schema::Type::User::pwd(@_); + $self->Fripost::Schema::Type::User::passwd(@_); } elsif ( $self->{_type} == DOMAIN ) { die "Cannot change the password of a domain."; diff --git a/lib/Fripost/Schema/Type/User.pm b/lib/Fripost/Schema/Type/User.pm index 544687c..b21c2e1 100644 --- a/lib/Fripost/Schema/Type/User.pm +++ b/lib/Fripost/Schema/Type/User.pm @@ -56,7 +56,7 @@ sub add { # Change password -sub pwd { +sub passwd { my $self = shift; my $user = shift; |