mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
also allow IMAP type derived from Dovecot like EGroupware Mail
This commit is contained in:
parent
aa98478fbd
commit
c495e15ed9
@ -299,7 +299,7 @@ class Credentials
|
|||||||
public static function from_session(array $data, $set_identity=true)
|
public static function from_session(array $data, $set_identity=true)
|
||||||
{
|
{
|
||||||
// if the username contains non-ascii chars, try email address, as Dovecot does NOT deal with non-ascii usernames
|
// if the username contains non-ascii chars, try email address, as Dovecot does NOT deal with non-ascii usernames
|
||||||
if ($data['acc_imap_type'] === Api\Mail\Imap\Dovecot::class &&
|
if (is_a($data['acc_imap_type'], Api\Mail\Imap\Dovecot::class, true) &&
|
||||||
in_array($data['acc_imap_logintype'], ['standard', 'vmailmgr']) &&
|
in_array($data['acc_imap_logintype'], ['standard', 'vmailmgr']) &&
|
||||||
preg_match('/[^\x20-\x7e]/', $GLOBALS['egw_info']['user']['account_lid']))
|
preg_match('/[^\x20-\x7e]/', $GLOBALS['egw_info']['user']['account_lid']))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user