#5772 - Too many emails upon logging in.
| Identifier | #5772 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Too many emails upon logging in. |
| Status | Open |
| Tags |
Roadmap: v11 (custom) |
| Handling member | Chris Graham |
| Version | 11 alpha4 |
| Addon | core_cns |
| Description | When I first visit my site it sends an email the IP has not been validated before I even attempt to log in.
Afterwhich it sends another six after I login and told I need to validate. Now the problem comes I use the latest email to validate my IP which if I click the link to the validation page to enter the code it is sending an additional 2 emails again before I input the code. I am using PHP standard function email to process. Is this a bug or should I be using a direct connect to the server email outside of PHP? |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
Just Visited = equals I just went to the home page no login
After Login = I entered my login info
After Code = I entered the validation code and have now access.
(Click to enlarge)
(Click to enlarge)
(Click to enlarge)
https://gitlab.com/composr-foundation/composr/-/commit/9232721aef9a7ff3db25e55ae084294e12a32174
* Added cookie eating so Composr doesn't try logging in again with cookies
* Added a 1-hour grace period before sending another e-mail
The IP needs validated e-mail gets sent multiple times.
This patch eats login cookies when IP needs validated and adds a 1-hour grace period, hopefully to reduce the number of e-mails.
You can apply the patch via the upgrader.php like you would a regular upgrade.
You can also comment privately if you still feel like you don't want your answers to be public.
* What operating system are you using?
* What version PHP?
* What webserver + version?
* How are you logging in? Did you check "remember me" when logging in? Do the opposite and tell me if the issue persists.
* Does your IP address (when searching "what is my IP" in a search engine) match what is listed on your account profile?
* Check the database sessions table. Does there appear to be a new or updated session ID on every page load / each time you get the e-mail? If so, is the IP address changing? Does the IP match what the "what is my IP" search engine told you? Are there any asterisks (if so, treat them as wildcards)?
PHP = Latest Version
Logging In = I tried both ways doesn't make a difference.
IP Address = Yes it changes but only when I shut down the computer does it change. Matches Yes at log in my IP is a match and remains.
I am out of town doing music sessions till Friday so the rest I will fill in then.