From 457a9f9b0e9faff1aca1f7ac444092cfcafdf4fa Mon Sep 17 00:00:00 2001 From: Sandro Cazzaniga Date: Fri, 31 Aug 2012 13:05:24 +0000 Subject: [PATCH] - Revert this fix because of LEMONLDAP-515 fix.. --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_LDAP.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_LDAP.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_LDAP.pm index 564194f80..3dc6a21eb 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_LDAP.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_LDAP.pm @@ -259,8 +259,7 @@ sub userModifyPassword { return PE_BADOLDPASSWORD if ( $mesg->code == 53 ); } else { - if ( $self->{portal}->{portalRequireOldPassword} - and !$self->{portal}->{mail_token} ) + if ( $self->{portal}->{portalRequireOldPassword} ) { return PE_MUST_SUPPLY_OLD_PASSWORD if ( !$oldpassword );