You are not logged in.
Pages: 1
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
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
Pages: 1