Problems while registering

Summary

Quick summary what this issue is about.

Step to reproduce

modx 3.12 + login 1.9.14

[[!Register?
    &submitVar=`registerbtn`
    &activationResourceId=`999`
    &submittedResourceId=`998`
    &activationEmailTpl=`lgnActivateEmailTpl`
    &activationEmailSubject=`Deine Registrierung auf kontrabande.de!`
    &validate=`nospam:blank,
    username:required:minLength=4,
    email:unique,
    email:required,
    password:required:minLength=6,
    password_confirm:password_confirm=^password^`
    &excludeExtended=`login-updprof-btn`
]]

Observed behavior

User tries to register

User     123123213
Passwort anything
Email    [email protected]

The user is not yet activated.

Then try to register

User     123123213
Passwort anything
Email    [email protected] (or anything else)

The first registered user is overwritten

Expected behavior

Is this a bug or a feature?
Shouldn’t the first user that tries to register as 123123123 be protected against following attempts?

I realize that this is a rare condition. If the first user is activated, the second attempt to register will fail.
But I would like to screen the registered users first manually and then activate them.

And furthermore, the email:unique seems not to work. I am able to register different users with the same mail address.

Environment

modx 3.12 + login 1.9.14

There is a property &removeExpiredRegistrations that you can set to false (0) to avoid this behaviour.
By default the code assumes that the first registration is an expired, unused one.

I don’t think such a validator (:unique) exists.

It looks like you have to change the system setting allow_multiple_emails to avoid users with the same email address

1 Like

Ah, that did the trick. Many thanks. I owe you a beer (or two).