We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38164
    • 6 Posts
    HI!, I'm using the Login extra for registering new users and recently I found that some users are missing (around 100), by missing I mean that in the user's list, the ids are not correlative (100,101,102,-113-,114, etc). I can't find an entry in the manager log that says "user_delete", so I wonder how it's possible that the creation process is skipping ids. I thought maybe if a user does not activate his account for a certain ammount of time, its user entry is deleted, is that possible?

    Thanks in advance.
      • 3186 ☆ A M B ☆
      • 279 Posts
      Not as far I know. The only reason I can imagine that a user is "missing" is when it's removed (by admin or by itself, if you have implemented that). Or it's hacked :p but assumed that's not happened..
      I use Login extra a lot.
        MODX Ambassador (NL) & Professional MODX developer
        Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
        MODX e-commerce solution SimpleCart
        • 38164
        • 6 Posts
        I figured what was the problem, while doing the registration of a user, Login checks if the username is already registered and if that's the case it verifies if there's a password stored in the cache. According to the code if there's a password is because the user didn't activate his account. In other words, if a user registers but don't activate the account, and then tries to register again, Login will remove the user previously created and create a new one.That would explain the 'missing' users.

        The code in charge of this is located in the register controller, in the method 'validate username'.