tcnet Posted September 5, 2021 Share Posted September 5, 2021 (edited) This module for ProcessWire sends a notification email for each failed login attempt. Similar modules exists already in the module directory of ProcessWire. However, this module is designed to notify, even if specified user doesn't exist. Settings The settings for this module are located in the menu Modules=>Configure=>LoginFailNotifier. Notification email Specifies the email address to which the notification emails should be sent. Email subject Specifies the subject line for the notification email. Post variables Specifies the $_POST variables to be included in the notification email. Each variable must be separated by a comma. For example: login_name,login_pass Server variables Specifies the $_SERVER variables to be included in the notification email. Each variable must be separated by a comma. For example: REMOTE_ADDR,HTTP_USER_AGENT Link to ProcessWire module directory:https://processwire.com/modules/login-fail-notifier/ Link to github.com:https://github.com/techcnet/LoginFailNotifier Edited September 8, 2021 by tcnet Added links to ProcessWire module directory and github.com. 3 Link to comment Share on other sites More sharing options...
szabesz Posted September 5, 2021 Share Posted September 5, 2021 Hello, thanks for sharing! Have you forgotten to link to the module perhaps? eg.:https://tech-c.net/posts/login-fail-notifier-for-processwire/https://github.com/techcnet/LoginFailNotifier Link to comment Share on other sites More sharing options...
tcnet Posted September 5, 2021 Author Share Posted September 5, 2021 No, I haven't forgotten. The module is still under review. After approval I'll post all links. 1 Link to comment Share on other sites More sharing options...
Mark Maier Posted July 20, 2022 Share Posted July 20, 2022 Hi @tcnet, This Module seems to be exactly what I have been searching for. But testing it doesn't work in the way that the E-Mail won't be sent and the Error "LoginFailNotifier Failed to send email." gets logged. Do you have an idea what could be the problem? Does it have there any dependencies that aren't declared in the module info ore something like that? it's installed on Processwire v.3.0.165 Thanks in advance! Link to comment Share on other sites More sharing options...
tcnet Posted July 20, 2022 Author Share Posted July 20, 2022 3 minutes ago, Mark Maier said: Hi @tcnet, This Module seems to be exactly what I have been searching for. But testing it doesn't work in the way that the E-Mail won't be sent and the Error "LoginFailNotifier Failed to send email." gets logged. Do you have an idea what could be the problem? Does it have there any dependencies that aren't declared in the module info ore something like that? it's installed on Processwire v.3.0.165 Thanks in advance! That error message means that WireMail can not send the email. Maybe your mailer implementation doesn't work. Link to comment Share on other sites More sharing options...
Mark Maier Posted July 20, 2022 Share Posted July 20, 2022 3 minutes ago, tcnet said: That error message means that WireMail can not send the email. Maybe your mailer implementation doesn't work. ah ok, thanks for the quick reply, I will look into that ? Link to comment Share on other sites More sharing options...
Mark Maier Posted July 20, 2022 Share Posted July 20, 2022 In case anybody else comes upon a similar problem (calling wiremail in every other instance worked just fine) removing this from the module file (line 62) actually did the trick: $mailer->param('-f '.$data['notification_email']); 1 Link to comment Share on other sites More sharing options...
tcnet Posted July 20, 2022 Author Share Posted July 20, 2022 Thanks for this info. But I by my self encountered the opposite on some systems. Not adding this line won't send the email. Link to comment Share on other sites More sharing options...
tcnet Posted July 21, 2022 Author Share Posted July 21, 2022 I updated the module to 1.0.4 and added an option to specify the Return-Path in the email header. This option is blank by default. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now