mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
added comment
This commit is contained in:
parent
b8c681d1a5
commit
7948e86a07
1 changed files with 5 additions and 2 deletions
|
|
@ -134,8 +134,11 @@ class LdapMailAccounts
|
||||||
if ($oActions->DomainProvider()->Load($sDomain, true))
|
if ($oActions->DomainProvider()->Load($sDomain, true))
|
||||||
{
|
{
|
||||||
//only execute if the found account isn't already in the list of additional accounts
|
//only execute if the found account isn't already in the list of additional accounts
|
||||||
//and if the found account is different from the main account
|
//and if the found account is different from the main account.
|
||||||
if (!isset($aAccounts[$sEmail]) && $oAccount->Email() !== $sEmail)
|
//The check if the address is different from the one of the main account when using the Nextcloud integration needs
|
||||||
|
//to be done twice: directly on the mail address (when Nextcloud is configured to log the user in by mail address)
|
||||||
|
//or on "$sUsername@$sDomain" for the case Nextcloud logs the user in to SnappyMail by his username and a default domain.
|
||||||
|
if (!isset($aAccounts[$sEmail]) && $oAccount->Email() !== $sEmail && $oAccount->Email() !== "$sUsername@$sDomain")
|
||||||
{
|
{
|
||||||
//Try to login the user with the same password as the primary account has
|
//Try to login the user with the same password as the primary account has
|
||||||
//if this fails the user will see the new mail addresses but will be asked for the correct password
|
//if this fails the user will see the new mail addresses but will be asked for the correct password
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue