We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24834
    • 1 Posts
    Hallo

    I need web users to have possibility of creating new web users. New user must recieve an e-mail with username and password. I tried following:

    [!WebLoginPE? &type=`register` &regType=`verify` &customFields=`sponsor,first_name,last_name,email_content`&regRequired=`email,username` &registerTpl=`regtemp`!]

    Everything can work that way. New user is created in the database but the problem is that the user who just created new user is automatically logged out after registering a new one. Is there some better possibilities to allow web users to create new users?

    Thaks,
    Rene
      • 28042 ā˜† A M B ā˜†
      • 24,524 Posts
      It might be possible to use a plugin to stop the refreshing of the SESSION when a new web user is created; a hidden field in the form would allow the plugin to know when to act; or it could check to see if the user is already logged in as a web user, and simply not update the SESSION if he is.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 25586
        • 105 Posts
        I’m looking for this feature as well, someone got a solution for this? Thanks!

        Rogier