Skip to content
Snippets Groups Projects
Commit 8ed46066 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: don't keep possibly outdated passwords

parent d8e54acb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment