Author Topic: [1.7] User deleted after email change.  (Read 11722 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[1.7] User deleted after email change.
« on: March 12, 2005, 12:38:53 AM »
When a user changes their email address, and 4images set to activate user by email or by admin, the user might get deleted from the database if some other visitor enter register page, before the user get activated.

Open register.php
Find two (2) times this line:
Code: [Select]
WHERE (".get_user_table_field("", "user_joindate")." < $expiry) AND ".get_user_table_field("", "user_level")." = ".USER_AWAITING;
Replace both lines with this:
Code: [Select]
WHERE (".get_user_table_field("", "user_lastaction")." < $expiry) AND ".get_user_table_field("", "user_level")." = ".USER_AWAITING;
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)