We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36446
    • 184 Posts
    Hi!
    I upgraded to modx 2.1 yesterday and unfortunately forgot my password... rolleyes.
    I tried to reset the password with the forgot password link on the login page and this sent me an activation link and i could rest my password but i couldnt log in with this password.
    Next step was to try to set the password manually in the phpmyadmin users table. I tried md5, old_password password and even installed modx 2_1 localy on my xampp, created a new login for admin copied and pasted the values für password, salt and hash_class but still cannot log in.

    Could anyone help me please? Would be great! And sorry for the noob question...

      https://www.beautyislife-shop.de - premium make-up!
      https://www.topsterne.de - sell it here!
      ---------------------------------------------------------
      • 3749
      • 24,544 Posts
      The last thing you tried should work (assuming that you didn’t accidentally paste any leading or trailing spaces). Try deleting all the files in the core/cache directory and clearing your browser cache and cookies.
        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
        • 36446
        • 184 Posts
        thanks for the reply - i rechecked again - there are no trailing spaces or whatnot - deleted browser cache and deleted core/cache but still am not able to login. args..

        Update: There must be something totally messed up with the login system. I found another user and with this one i didn’t change the password and could recover it using a md5 cracker. But unfortunately i cannot log in with this user and the password either. Anyone has any idea what i can do to fix this?

        Update2: If i use the reset passwort link the new (not working) password is stored as plain text in the database. Maybe this can help to solve the problem?

        Update 3; okay - it must have something to do with the "salted password" thing in 2.1 -
        found this but still don’t get it:
        http://modxcms.com/forums/index.php?topic=52748.0



          https://www.beautyislife-shop.de - premium make-up!
          https://www.topsterne.de - sell it here!
          ---------------------------------------------------------
          • 36446
          • 184 Posts
          okay - i downgraded to 2.08 again (very sad) ... now it’s working again...
            https://www.beautyislife-shop.de - premium make-up!
            https://www.topsterne.de - sell it here!
            ---------------------------------------------------------
            • 21838
            • 284 Posts
            Please READ UPGRADE INSTRUCTIONS:

            - logout before updating.
            - erase our cookies for that domain.
            - should run then.

            If you don’t erase your cookies (login-status) you won’t be able to login after upgrading to 2.1 which has to do with new salting method
              MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
              • 3749
              • 24,544 Posts
              You may also run into trouble if the password contains any punctuation marks.
                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
                • 36446
                • 184 Posts
                okay! thank you very much for the hints! I actually didn’t delete the cookies and it was driving me crazy yesterday...

                I will try it later again and let you know if it had worked!

                  https://www.beautyislife-shop.de - premium make-up!
                  https://www.topsterne.de - sell it here!
                  ---------------------------------------------------------
                  • 36446
                  • 184 Posts
                  still no luck! Now i’m pissed... i did everything correct, deleted cache and cookies and still am not able to login to the backend! can anyone help me on this issue? These salted passwords are a great improvement in security when no one is able to login anymore...
                  Would be great if someone could help me create a new admin account - maybe with phpmyadmin - please help me - im a little bit despreate now...


                    https://www.beautyislife-shop.de - premium make-up!
                    https://www.topsterne.de - sell it here!
                    ---------------------------------------------------------
                    • 7557
                    • 61 Posts
                    Same problem for me.
                    Can’t login after upgrade to 2.1
                      • 36446
                      • 184 Posts
                      very dirty hack (but working):

                      use the old
                      /core/model/modx/processors/security/login.php (from modx 2.08)
                      and put your md5 Password in the password field AND the hash_class field in the table users in phpmyadmin.
                      I know - this is a very dirty hack but for the moment this is working for me...

                      Hope anyone comes up with another and better fix for this.


                      then when i am loged in i can create a new user - but this users passord is then in plain text in the database - and of course i cannot log in with the username and password - first have to encode it to md5 manually.... very strange behaviour of modx though...
                        https://www.beautyislife-shop.de - premium make-up!
                        https://www.topsterne.de - sell it here!
                        ---------------------------------------------------------