summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-04-14 11:08:50 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-04-14 11:08:50 +0200
commit8ed4606685f93f5fea002aecaf5279f482e78115 (patch)
treeed62e3b7e67f31f3dec43264ce5bcd0597387b23 /apps
parentd8e54acbf3856b3917912a73481ffb482a1a25e8 (diff)
downloadnextcloud-server-8ed4606685f93f5fea002aecaf5279f482e78115.tar.gz
nextcloud-server-8ed4606685f93f5fea002aecaf5279f482e78115.zip
LDAP: don't keep possibly outdated passwords
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/user_ldap.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php
index 3521a9d90cf..1e8dc6aacce 100644
--- a/apps/user_ldap/user_ldap.php
+++ b/apps/user_ldap/user_ldap.php
@@ -94,10 +94,6 @@ class OC_USER_LDAP extends OC_User_Backend {
if( !$this->ldap_dc )
return false;
- $email = OC_Preferences::getValue($uid, 'settings', 'email', '');
- if ( !empty( $email ) )
- return false;
-
$email = $this->ldap_dc[$this->ldap_email_attr][0];
OC_Preferences::setValue($uid, 'settings', 'email', $email);
}