Hi there,
currently working on this fine WebLoginPE Snippet.
This is my Snippet Call:
[!WebLoginPE? &type=`simple` ®Type=`verify` &lang=`de` ¬ify=`email.de` &groups=`mygrozup`!]
The last thing, I want to achieve is:
A new user should be unable to login until he is set "Active" in the Backend manually.
Although he has obtained his Password via Mail...
Can I trigger this via the MODX Tables?
Someone has a good idea?
Kind regards.
K.
-
☆ A M B ☆
- 24,524 Posts
You could use a plugin using onWebSaveUser to block the login (set the "blocked" field to 1), then a manager would have to edit the user and clear the block. This would be better than using a hidden field in the registration form, since that can be spoofed from the browser.
The plugin would need to check the values passed in by the event; $mode (I think) should be "new" for a new user and the new user ID is in the $user variable.
Hi Adrian,
looks like it’s just the thing I need!
Thanks for ya quick help.
Kind regards
K.