We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for Login 1.0.2-pl by splittingred.

    Brief Description:

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


    • Added usernameField, emailField, passwordField to Register
    • Added some extra validators to Register
    • Fixed bug with custom Register validators not succeeding

    See the Official Documentation here:
    http://svn.modxcms.com/docs/display/ADDON/Login
      • 4385
      • 372 Posts
      I am having problems with the Login snippet. I am sure it something I do not understand.

      I trying to learn revo, I have it running under MAMP. I used the package manager to install Login. I created a test user and logged in with that account on the page with the snippet.

      [[!Login? &loginResourceId=`1`]]


      It correct redirects me to page one. On anther page I have this code.

      <p>Prints the ID: [[+modx.user.id]]</p>
      <p>Prints the username: [[+modx.user.username]]</p> 
      <p>Prints the fullname: [[+modx.user.id:userinfo=`fullname`]]</p> 
      


      Which displays...
      [tt]
      Prints the ID:
      Prints the username: (anonymous)
      Prints the fullname: Admin User
      [/tt]

      When I go to the page as admin I get this...
      [tt]
      Prints the ID: 1
      Prints the username: admin
      Prints the fullname: Admin User
      [/tt]

      The user info in the backend increments the login correctly. But the list of online users does not show the user logged in.

      What am I doing wrong?


        DropboxUploader -- Upload files to a Dropbox account.
        DIG -- Dynamic Image Generator
        gus -- Google URL Shortener
        makeQR -- Uses google chart api to make QR codes.
        MODxTweeter -- Update your twitter status on publish.
        • 4385
        • 372 Posts
        Is this a bug? Do need an account to comment on github?
          DropboxUploader -- Upload files to a Dropbox account.
          DIG -- Dynamic Image Generator
          gus -- Google URL Shortener
          makeQR -- Uses google chart api to make QR codes.
          MODxTweeter -- Update your twitter status on publish.
          • 28215
          • 4,149 Posts
          Are you testing the Front-End logins with a separate browser?

          Browser sessions work across tabs; you’ll need to load an entirely different browser, otherwise it will show you as logged in with your admin user.
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 4385
            • 372 Posts
            Yes, I was using separate browsers. I use Firefox for my admin and safari for the user account.
              DropboxUploader -- Upload files to a Dropbox account.
              DIG -- Dynamic Image Generator
              gus -- Google URL Shortener
              makeQR -- Uses google chart api to make QR codes.
              MODxTweeter -- Update your twitter status on publish.
              • 4385
              • 372 Posts
              Maybe I did not create the users correctly.
                DropboxUploader -- Upload files to a Dropbox account.
                DIG -- Dynamic Image Generator
                gus -- Google URL Shortener
                makeQR -- Uses google chart api to make QR codes.
                MODxTweeter -- Update your twitter status on publish.