mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:07 +01:00
also allow IMAP type derived from Dovecot like EGroupware Mail
This commit is contained in:
parent
d95305815a
commit
4d5e5aa28c
@ -299,7 +299,7 @@ class Credentials
|
||||
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 ($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']) &&
|
||||
preg_match('/[^\x20-\x7e]/', $GLOBALS['egw_info']['user']['account_lid']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user