We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2690
    • 148 Posts
    Hi,

    have a problem with retrieving user passwords:

    this is my setup
    1: User registers through the form on frontend, selects username, password gets assigned automatically by modx
    2: i have a snippet that automatically blocks the user on registration
    3. after i confirm and check all fields i unblock the user and i need to send them their login info: username and password.

    if i just pull the pwd data directly from the Database i get the md5 encoded string.
    is there any way to pull the real one ?

    Thanks,

    Aleks
      MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5
      • 22303 MODX Staff
      • 10,725 Posts
      No, this is not possible and would be a rather gaping security hole if it was. You should set the password to something else before sending the email so you have the original password to send.
        • 2690
        • 148 Posts
        yea .. i kind of figured.
        so basically when i need to send a confirmation email to the user i have to do a password change and email it right away to the user with updating it in the DB ...

        Thanks !
          MODx Revo 2.0.6-pl (Traditional) | Apache 2.2.3 | PHP 5.2.14 | MySQL 5.0.77 | MAC OS 10.6.5 | FF 3.6/Chrome 9.0.5