We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8542
    • 37 Posts
    Alright, so I am going to be attempting to create a IP.Converge module for MODx. I do need a few things to successfully accomplish this.

    First off; How are passwords encrypted and stored to database? How are they compared(What functions)?

    How are sessions instantiated? What functions call the creation of the session/cookie creation?

    And anything else you think I may need tongue

    admin: clarified subject for others reading topic titles only
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Is this for 1.0 (0.9.6.x) or for 2.0 Revolution?
        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
        • 8542
        • 37 Posts
        I think I’ll be doing it on Revolution. It should be a bit better in the long run (as The migration step is Revo anyway). Either or, though.
        I may or may not use IP.Converge. I may try to implement a bridge between the two. (I have a few ideas on this already).

        Oh and sottwell, thank you very much for the help over the last few days. I forgot to express my gratitude =)
          • 3749
          • 24,544 Posts
          Quote from: eFragPulse at Jun 24, 2009, 12:53 PM

          Alright, so I am going to be attempting to create a IP.Converge module for ModX. I do need a few things to successfully accomplish this.

          First off; How are passwords encrypted and stored to database? How are they compared(What functions)?

          How are sessions instantiated? What functions call the creation of the session/cookie creation?

          And anything else you think I may need tongue

          For Revo,

          Take a look at the _initSession() function in core/model/modx/modx.class.php

          Passwords are encoded using md5. You might be able to use or subclass the modUser class and let it handle the password stuff for you. Look at core/model/modx/moduser.class.php.

          smiley
            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
            • 8542
            • 37 Posts
            Thank you very much. I will be working on this bridge, and when I’m done I will release it for the community. Much appreciation =)
              • 3749
              • 24,544 Posts
              Thanks in advance for your contribution. smiley
                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
                • 8542
                • 37 Posts
                Actually. This is really not even needed. IPB3 can do authentication via external db. This allows you to enter : DB/User/Pass/Table Name(and prefix)/username field and password field. Also allows to specify the type of encryption. For this choose, MD5. Make sure you set this to active, Then disable registration.

                This is a GREAT method of doing this.

                The only thing it does not solve is Single Sign On. I will work on a method for this soon.

                ALSO make sure you to do the following to prevent out of sync-ness..

                Modify the theme User control panel section for Change password to display a message/link to your change pass page. This is not synched if the user changes pass in the panel on forums. Also make sure you change the Header and either link to your registration page or remove the Registration Part all together. For an example of this check out: http://efragtv.com/forum