I’m modifying the default Register process to allow administrators to activate users, rather than the users activating via email activation link.
This is all going well, @bobray ActivationEmail plugin has helped and most other tweaks are achieved via postHooks on the Register call.
The client has requested that a specific message is shown if User B tries to sign up with an email address that is already in use by User A.
This works fine when User A’s account is activated - the Register form submit fails and the register.email_taken message is shown in the form.
But if User A’s account is not yet activated, the Register form completes, sends User B an email and, rather unexpectedly, updates User A’s unactivated account with User B’s details.
This seems to assume that User A and User B are the same person and I can just about see the logic in it.
Anyway, what I’d like is to see the Register form submission fail with the register.email_taken message regardless of the activation status of User A’s account.
Am I missing a setting somewhere? Or would this be a case of editing the Register extra? If so - any ideas where?
As always - thanks for any help offered.