Login-notification not being sent
Created by: Scunkaneli
While this extension is activated for a specific user, this user won't being sent a login-notification mail, despite the setting is set to true. As long as tx_authenticator is active, no mail is being sent. As the installation-tool warning mail is still being sent and because the mail is sent while the extension is disabled, I guess it has something to do how this extension overrides/interacts with the normal User Authentication of typo3.
If I'm not mistaken, the function used by typo3 to achieve this behaviour is located inside BackendUserAuthentication.php, starting in line 2613 (you can also search for private function emailAtLogin()
). At least this was the only location I found after digging through the files for a long time.
I haven't got any idea why this function does not work when logging in via 2-fa, as the code seems fine to me - I also did not found any part of your extension that overrides "BackendUserAuthentication.php".
As much as I'd like to contribute to this issue by pushing a PR, I have no idea what is causing this.
System: Typo3 CMS 8.7.3 PHP 7.1.6 tx_authenticator 0.2.0 TER
Edit: After some more research, I think the issue is caused by the check if ($this->loginSessionStarted) {[...]}
. It seems like this is not triggered when logging in via 2fa.