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

    How to create an user account, disable the account by default, and only enable it when the user confirms the email address? Or, another option is, wait for site admin to enable it.
    I saw in Weblogin there are mechanisms for account activation via email but no example support it.

    Currently I’m using WebLogin/WebSignup snippet, which automatically creates the web account and enables it, so there is no email verification.

    TIA,
    Andraz

      • 36451
      • 264 Posts
      Anyone?
        • 25663 MODX Staff
        • 12,272 Posts
        This would require a custom plugin to intercept the event when web users are created. Should be doable, but it’s not available out of the box currently. (Would make for a fine addition to the core though!)
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 40024
          • 72 Posts
          I am interested in this as well. I think that currently only revo plugins and snippets make use of activation email technics, but i haven't be able to find something for evolution.
            • 3749
            • 24,544 Posts
            Yes, the Register snippet does that automatically in Revolution (and the Subscribe extra handles setting it up for you). I don't think there's an equivalent for Evolution, but there might be.

              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              It's been a while, but WebLoginPE might do that.
                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
                • 40024
                • 72 Posts
                Susan,you mean with the "activate" service of WebLoginPE right?But then the register button would have to have 2 values.One for the "register" service and one for the "activate" service,correct?
                  • 40024
                  • 72 Posts
                  breezer you have done an amazing work!!!I think it should be added to the repository(if not already) and i also think that i speak on behalf of everyone who has taken an interest in this, when i say thank you a lot!

                  I have tested it on a site i am building on a local server (xampp) and everything seems perfect until now smiley

                  One suggestion for possible future additions:It would be nice if the user was automatically logged in, after he filled his information and activation password on activation form screen.
                    • 40024
                    • 72 Posts
                    I found a small problem to the "websignup_activate" snippet and a solution to it:
                    If somebody wishes to change the messages inside "websignup_activate.lang.php" to his local languange and he uses special characters (like i used Greek letters), then he must change character encoding to utf-8 without bom! If you change to just utf-8, then you will get the following parser errors:

                    1)Undefined variable: user_attr
                    2)Constant XFORUM_MODE already defined

                      • 4041
                      • 788 Posts
                      I moved the plugin code to the dev forum, there are quite a few changes so give the new version a try smiley

                      https://forums.modx.com/thread/80755/plugin-websignup-activate-plugin-evolution#dis-post-444959
                        xforum
                        http://frsbuilders.net (under construction) forum for evolution