We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for Login 1.0.3-rc1 by splittingred.

    Brief Description:

    Loads a simple login/logout form, with password retrieval functionality and a register form snippet.

    • Fixed bug with embedded property in Login snippet
    • Added Russian translation

    See the Official Documentation here:
    http://svn.modxcms.com/docs/display/ADDON/Login
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 14883 ☆ A M B ☆
      • 450 Posts
      http://svn.modxcms.com/docs/display/ADDON/ForgotPassword

      Usage example for ResetPassword snipppet:
      [[ResetPassword? &loginResourceId=`72`]]

      I’d recommend changing that to uncached:
      [[!ResetPassword? &loginResourceId=`72`]]

      When cached, if a user goes through the ((forgot password / get email / click link to reset)) process more than once, the password is not reset properly after the first time. The email will contain a new password (assuming that ForgotPassword was called uncached), and the encryption in the link will match it... but ResetPassword (since it is cached) will reset the password to whatever it was instructed to the first time it was run.

        • 28215
        • 4,149 Posts
        Good catch James, fixed.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 26647
          • 12 Posts
          i made my register and update profile pages
          but they both dont work

          For register and update profile pages,: i just made resources and put [[!Register]] and [[!UpdateProfile]]
          in it.
          But when i press preview they dont seem to work!?
          Do i have to adjust something in the snippets???

          Rest of pages (login, forgot password and such) seems to work..

          Thx for helping me out
            • 14883 ☆ A M B ☆
            • 450 Posts

            For register and update profile pages,: i just made resources and put [[!Register]] and [[!UpdateProfile]]
            in it.
            But when i press preview they dont seem to work!?

            Are you getting a page error, or just a blank page?

            These snippets are to be placed on pages that contain a corresponding form - the snippets themselves don’t provide the form. If your resources contain only the snippet calls, this would most likely result in a blank page.

            There is a default registration form in the Login chunks folder - lgnRegisterForm. Try putting this on your register page:
            [[!Register]]
            [[!$lgnRegisterForm]]
            


            My recommendation (unless the provided sample form works for you as-is) is to duplicate it and customize it to your liking. It has all the necessary placeholders already placed in it.

            http://svn.modxcms.com/docs/display/ADDON/Register - Register documentation
            http://svn.modxcms.com/docs/display/ADDON/UpdateProfile - UpdateProfile documentation

            Hope this helps.
              • 14883 ☆ A M B ☆
              • 450 Posts
              I’d like to request that ReCaptcha be added as a direct option to the Register snippet. Ideally the whole ’hooks’-type functionality from FormIt would be great to add to Register... but at a minimum, ReCaptcha is pretty vital for a registration form. I had to create a modified version of Register that behaves as a FormIt hook (returns true on success).
                • 28215
                • 4,149 Posts
                James, can you file that here:

                http://github.com/splittingred/Login/issues

                Thanks.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 26647
                  • 12 Posts
                  Quote from: jrotering at Jul 19, 2010, 08:42 AM


                  For register and update profile pages,: i just made resources and put [[!Register]] and [[!UpdateProfile]]
                  in it.
                  But when i press preview they dont seem to work!?

                  Are you getting a page error, or just a blank page?

                  These snippets are to be placed on pages that contain a corresponding form - the snippets themselves don’t provide the form. If your resources contain only the snippet calls, this would most likely result in a blank page.

                  There is a default registration form in the Login chunks folder - lgnRegisterForm. Try putting this on your register page:
                  [[!Register]]
                  [[!$lgnRegisterForm]]
                  


                  My recommendation (unless the provided sample form works for you as-is) is to duplicate it and customize it to your liking. It has all the necessary placeholders already placed in it.

                  http://svn.modxcms.com/docs/display/ADDON/Register - Register documentation
                  http://svn.modxcms.com/docs/display/ADDON/UpdateProfile - UpdateProfile documentation

                  Hope this helps.

                  Thx you really helped me out
                    • 21767
                    • 44 Posts
                    Hello Shaun,

                    I have installed the pagacke again, but the snippet source code of UpdateRegister is as same as of Register snippet. Is this an accident in the package? So, I need the code of UpdateRegister now.

                    Norbert
                      • 28215
                      • 4,149 Posts
                      Quote from: norblenn at Jul 22, 2010, 02:40 PM

                      Hello Shaun,

                      I have installed the pagacke again, but the snippet source code of UpdateRegister is as same as of Register snippet. Is this an accident in the package? So, I need the code of UpdateRegister now.

                      Norbert

                      Norbert,

                      I’m not sure what you’re talking about. There is no UpdateRegister snippet.
                        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com