forked from RainLoop/rainloop-webmail
-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
the-djmaze
committed
Sep 21, 2024
1 parent
56db749
commit d3ecfdc
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,18 +124,31 @@ $Plugin->addHook('hook.name', 'functionName'); | |
params: | ||
string &$sEmail | ||
|
||
Happens in resolveLoginCredentials($sEmail) BEFORE resolving domain name. | ||
This is the pure text from the login screen (DoLogin) or the SSO feature (ServiceSso) received by LoginProcess(). | ||
- DoLogin() -> LoginProcess() -> resolveLoginCredentials($sEmail) | ||
- ServiceSso() -> LoginProcess() -> resolveLoginCredentials($sEmail) | ||
So $sEmail can just have the value `test` without a domain. | ||
|
||
### login.credentials.step-2 | ||
params: | ||
string &$sEmail | ||
string &$sPassword | ||
|
||
Happens in resolveLoginCredentials($sEmail) AFTER resolving domain name. | ||
So $sEmail always has a domain (for example `test` is now `[email protected]`). | ||
|
||
### login.credentials | ||
params: | ||
string &$sEmail | ||
string &$sImapUser | ||
string &$sPassword | ||
string &$sSmtpUser | ||
|
||
$sEmail is the domain imap->fixUsername() without shortening. | ||
$sImapUser is the domain imap->fixUsername() for login into IMAP. | ||
$sSmtpUser is the domain smtp->fixUsername() for login into SMTP. | ||
|
||
### login.success | ||
params: | ||
\RainLoop\Model\MainAccount $oAccount | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters