mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-25 08:32:57 +08:00
Resolve #1828
This commit is contained in:
parent
bc6a2b67c0
commit
91ff43e6ab
2 changed files with 4 additions and 3 deletions
|
@ -18,8 +18,8 @@ export class AdminSettingsDomains /*extends AbstractViewSettings*/ {
|
|||
testUsername() {
|
||||
Remote.request('AdminDomainMatch',
|
||||
(iError, oData) => {
|
||||
if (oData?.Result?.domain) {
|
||||
alert(`${oData.Result.email} matched domain: ${oData.Result.domain.name}`);
|
||||
if (oData?.Result?.name) {
|
||||
alert(`${oData.Result.email} matched domain: ${oData.Result.name}`);
|
||||
} else {
|
||||
alert('No domain match');
|
||||
}
|
||||
|
|
|
@ -71,7 +71,8 @@ trait AdminDomains
|
|||
return $this->DefaultResponse(array(
|
||||
'email' => $sEmail,
|
||||
'login' => $sCredentials['imapUser'],
|
||||
'domain' => $sCredentials['domain'],
|
||||
'name' => $sCredentials['domain'] ? $sCredentials['domain']->Name() : null,
|
||||
// 'domain' => $sCredentials['domain'],
|
||||
'whitelist' => $sCredentials['domain'] ? $sCredentials['domain']->ValidateWhiteList($sEmail) : null
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue