mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fix OAuth to also be triggered by name of imap-server, eg. for custom domains
This commit is contained in:
parent
2b472398ad
commit
dc3e8c5b7d
@ -228,8 +228,8 @@ class admin_mail
|
||||
{
|
||||
$content['acc_imap_username'] = $content['ident_email'];
|
||||
}
|
||||
// supported oauth providers
|
||||
if (($oauth = OpenIDConnectClient::providerByDomain($content['acc_imap_username'])))
|
||||
// supported oauth provider or mail-server of them for custom domains
|
||||
if (($oauth = OpenIDConnectClient::providerByDomain($content['acc_imap_username'], $content['acc_imap_host'])))
|
||||
{
|
||||
$content['output'] .= lang('Using IMAP:%1, SMTP:%2, OAUTH:%3:', $oauth['imap'], $oauth['smtp'], $oauth['provider'])."\n";
|
||||
$hosts[$oauth['imap']] = true;
|
||||
@ -1811,4 +1811,4 @@ class admin_mail_logger
|
||||
{
|
||||
fwrite($this->fp, $msg."\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user