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.5.2-pl by splittingred.

    Brief Description:

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

    • [#3330] Add sanity checks to prevent possible submitVar data adding in UpdateProfile
    • Add support for moderation of users when done in a prehook
    • Add support for redirectBackParams that can send encoded data through a login/registration process
    • Add a generic validation error in Register to allow for general messages
    • Ensure preHooks run before password validation in ChangePassword snippet
    • Fix issue with placeholderPrefix in UpdateProfile snippet


    New in 1.5.1

    • [#44] Fix bug with login validator, &validate parameter
    • [#40] Fix issue with syncUsername in UpdateProfile
    • [#42] Respect allow_multiple_emails setting that prevents users with same email addresses
    • [#43] Add workaround for xPDO bug with NULL fields in modUserProfile
    • Add &validate ability to Register/UpdateProfile snippets
    • Enhance Validators in Register/UpdateProfile to FormIt-standards
    • Trim each hook specification in hooks calls
    • [#28] Fixed validator issue in UpdateProfile
    • Added redirectTo and redirectParams on ForgotPassword snippet
    • Updated events in ResetPassword snippet to pass user object
    • Fixed UpdateProfile to properly update user obj so derivative User classes can manage profile updates


    See the Official Documentation here:
    http://rftm.modx.com/display/ADDON/Login
    See bugs here:
    http://bugs.modx.com/projects/Login
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 12893
      • 13 Posts
      Thanks for the great add-on! I am just wondering, would it be possible to add an option to login automatically after registering? Thanks!
        • 11055 ☆ A M B ☆
        • 3,112 Posts
        I’m trying to have the Login and Register on the same page.

        Problems:

        • They use the same [[+username]] and [[+password]] placeholders. So on error return redirect, the values will fill up the last form.
        • Funny thing, they do not use the same recaptcha placeholder. [[+login.recaptcha_html]] and [[+recaptcha_html]].
          So the recaptcha preHook can only be applied to one of them. They can not share the same recaptcha placeholder.
          Rico
          Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
          MODx is great, but knowing how to use it well makes it perfect!

          www.virtudraft.com

          Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

          Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

          Maintainter/contributor of Babel

          Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          Just if there are placeholders like these:
          [[+username? &namespace=`login` &topic=`default`]]
          [[+username? &namespace=`login` &topic=`register`]]
            Rico
            Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
            MODx is great, but knowing how to use it well makes it perfect!

            www.virtudraft.com

            Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

            Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

            Maintainter/contributor of Babel

            Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
            • 7243
            • 21 Posts
            used to not getting answers on 90% of what I ask, but I’ll try once more, I am suddenly having problems with four sites on login register 1.5.2 on revo 2.0.8, before they worked seemingly fine, nothing has been done, all templates are from the rtfm documentation
            unfortunately when a user registers the email sent contains a link which returns a 404.

            here is the call
            [[!Register?
                &preHooks=`recaptcha`
                &submitVar=`registerbtn`
                &activationEmailTpl=`ActivationEmailTpl`
                &activationEmailSubject=`Thanks for Registering!`
                &activationResourceId=`42`
                &submittedResourceId=`41`
                &usergroups=`client`
                &recaptchaTheme=`white` 
            ]]
            [[$regform]]

            as I said all the forms are from the rtfm, there hasn’t been an update to login for a bit, so I am wondering what is causing this.
            also recaptcha no longer works, I can type whatever I want in the form and it doesn’t matter.
            it redirects properly, andthe activation resource is correct and published with the correct snippet call, again all RTFM.
            this is a severe problem, does anyone have an idea of what is going on, I have been at this since 6 this mourning it is now 8p.m. and I just get figure it out, I have done everything possible. why it doesn’t work now I have no idea. I removed the submitVar and the email sent connected just fine to the correct page, tried again, and this time it returned the same error, a 404 page not found.
            even if I remove the prehook and the submitvar, there is a 404, does it have something to do with a formit update?

            checked the error logs
            Problem getting service archivist, instance of class Archivist, from path /home/folder/thissite.com/core/components/archivist/model/archivist/

            archivist? never seen that error output before, I am thinking the archivist extra, but I didn’t add it to this site, just saying in case someone says "did you set up archivist..." or whatever I am exhuasted I am done


            EDIT:
            I cleared the error logs, and tried to reg again here is the error message:
             [2011-05-09 18:15:32] (ERROR @ /index.php) Could not load class: Archivist from archivist.
            [2011-05-09 18:15:32] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
            [2011-05-09 18:15:33] (ERROR @ /index.php) Could not load class: Archivist from archivist.
            [2011-05-09 18:15:33] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
            [2011-05-09 18:15:51] (ERROR @ /connectors/security/user.php) Could not get table name for class: modAccess
            [2011-05-09 18:15:51] (ERROR @ /connectors/security/user.php) Error 42000 executing statement: 
            Array
            (
                [0] => 42000
                [1] => 1064
                [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 40' at line 1
            )
            
            [2011-05-09 18:16:34] (ERROR @ /index.php) Could not load class: Archivist from archivist.
            [2011-05-09 18:16:34] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
            [2011-05-09 18:16:34] (ERROR @ /index.php) modUserProfile: Attempt to set NOT NULL field internalKey to NULL
            [2011-05-09 18:16:34] (ERROR @ /index.php) Could not load class: Archivist from archivist.
            [2011-05-09 18:16:34] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
            [2011-05-09 18:16:35] (ERROR @ /index.php) Could not load class: Archivist from archivist.
            [2011-05-09 18:16:35] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/


            why is it mentioning arhivist? what is that? I know about the extra, but have never installed it on the site, or the other sites having problems the host is up to date on sql and php versions, no updating lately by them. mysql 5.0.51a php 5
              • 7243
              • 21 Posts
              sorry guys, after pulling my hair out, I realized the client had messed with the tree, the confirm reg was outside of it’s original containing folder! the registration was in a container which is hidden, and with furls, it doesn’t appear in the url http://site.com/container/reg it’s like this http://site.com/reg
              so I moved the confirm reg up into the folder where it had been, the only good side Is a can charge a 14 hour day!

              I left the previous error up, captcha works everything is good, all four sites are owned by the same company, and I think they thought some "tech" guy could handle the sites...things have been rearranged and it wasn’t until I noticed a whole plethora of broken links did I come to the conclusion there was a problem with the site structure itself....ugggggggh! it had been such a long time since I worked on the site, I hadn’t noticed.

              I am so sorry, but you know after so many liters of caffiene, and hours of not seeing the obvious, people can jump the gun a bit...I grovel at your feet for wasting your time.

              BUT, the same error in the logs is being spit out! what is that? I’d still like some insight. actually it’s a bit different
               [2011-05-09 18:57:05] (ERROR @ /index.php) Could not load class: Archivist from archivist.
              [2011-05-09 18:57:05] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
              [2011-05-09 18:57:07] (ERROR @ /index.php) Could not load class: Archivist from archivist.
              [2011-05-09 18:57:07] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
              [2011-05-09 18:57:09] (ERROR @ /index.php) Could not load class: Archivist from archivist.
              [2011-05-09 18:57:09] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
              [2011-05-09 18:57:10] (ERROR @ /index.php) Could not load class: Archivist from archivist.
              [2011-05-09 18:57:10] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
              [2011-05-09 18:58:11] (ERROR @ /index.php) Could not load class: Archivist from archivist.
              [2011-05-09 18:58:11] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
              [2011-05-09 18:58:12] (ERROR @ /index.php) modUserProfile: Attempt to set NOT NULL field internalKey to NULL
              [2011-05-09 18:58:12] (ERROR @ /index.php) Could not load class: Archivist from archivist.
              [2011-05-09 18:58:12] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
              [2011-05-09 18:58:13] (ERROR @ /index.php) Could not load class: Archivist from archivist.
              [2011-05-09 18:58:13] (ERROR @ /index.php) Problem getting service archivist, instance of class Archivist, from path /home/directory/somesite.com/core/components/archivist/model/archivist/
              

                • 11055 ☆ A M B ☆
                • 3,112 Posts
                Are you sure you’re asking on the right forum?
                Looks like it’s the Archivist’s issue.
                  Rico
                  Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                  MODx is great, but knowing how to use it well makes it perfect!

                  www.virtudraft.com

                  Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                  Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                  Maintainter/contributor of Babel

                  Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                  • 14645
                  • 1 Posts
                  Hi all.

                  I am creating a site where several companies are given their own login details (one per company). The idea is that the company will log on and then be taken to a page tailored for them. I’m using the Login addon, which works well, but I can’t work out how to take users to a specific page once they have successfully logged in, depending on who they have logged in as.

                  Any ideas?

                  Many thanks - Jon

                  PS This is a repost after I realised that I put it on the wrong place in the forum originally - oops, sorry!
                    • 26903
                    • 1,336 Posts
                      Use MODx, or the cat gets it!
                      • 14645
                      • 1 Posts
                      Yes, but I couldn’t find out how to do what I want. undecided

                      Of course I may just not be understanding it properly!