You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-03-05 14:06:14

dpanegassi
Member
Registered: 2024-03-05
Posts: 2

GLPI 10 - IMAP Login duplcate user

Hi,

I´m trying to implement login via IMAP, but i notice if the user login with "user@domain" it´s create one user, and if he login just with "user" it will create another user

Tried to let blank the "Email domain name (users email will be login@domain)" but then i cannot authenticate

There´s a way around this? force login with only domain or without it? so it not duplicate user

Offline

#2 2024-03-05 19:48:57

dpanegassi
Member
Registered: 2024-03-05
Posts: 2

Re: GLPI 10 - IMAP Login duplcate user

Find a temporary way of doing this

Edit front/login.php and use the "explode" to get only the username

if (isset($_SESSION['namfield']) && isset($_POST[$_SESSION['namfield']])) {
   $login2 = $_POST[$_SESSION['namfield']];
   $parts=explode('@',$login2);
   $login = $parts[0];
} else {
    $login = '';
}

If someone know a more permanent way, i'll appreciate

Offline

Board footer

Powered by FluxBB