Skip to content

Commit

Permalink
* [FIX] Fixed duplicated user login when adding/updating an LDAP user…
Browse files Browse the repository at this point in the history
… record during log in. Solves #468. Thanks to @zulink
  • Loading branch information
nuxsmin committed Mar 2, 2017
1 parent 8f83246 commit e97a9c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/SP/Controller/LoginController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ protected function authLdap(LdapAuthData $LdapAuthData)
$this->LogMessage->addDetails(__('Servidor LDAP', false), $LdapAuthData->getServer());

try {
$this->UserData->setUserLogin($this->UserData->getLogin());

// Verificamos si el usuario existe en la BBDD
if (UserLdap::checkLDAPUserInDB($this->UserData->getLogin())) {
// Actualizamos el usuario de LDAP en MySQL
Expand Down

0 comments on commit e97a9c5

Please sign in to comment.