We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    mm not so much I think
    if its not standard md5 then people need to re register. or you could set somthing els like ther postal adres or telefoonnumber as password
    things that are not to public but known by the user. and tel them to login with that and change there pasword.

    md5 is not reversible thats why its used so that the passwords are secure.
    the double passwords are special md5 + salt passwords where salt is a secret word that is added to the password and encrypted togetter with the md5:
    md5( PASSWORD + SALT ) + : + SALT
    


    Dimmy
      follow me on twitter: @dimmy01
      • 19132
      • 199 Posts
      Thanks for getting back to me on this. Most likely I’ll encourage them to use the Forgot your password link but change the wording to something like "generate a new password" since I have their email addresses and the users are pretty savvy about websites.

      Thanks for your reply, again, and thanks for a great little app.
        MySQL: 5.0.45
        PHP: 5.2.6
        Linux 2.6.9-023stab048.6-enterprise #1
        cURL enabled
        PDO enabled
        FFox Apple 3.6.8
        Firebug DIS-abled
        • 31471
        • 206 Posts
        I modified this snippet further (based on Dimmy’s version).

        - Added checkbox to send notification emails to the imported users (uses the default email template);
        - Checks if a user already exists to avoid error message with broken import sessions;
        - Puts temporary file to assets/cache because that’s always writable.
        And from Dimmy’s:
        – Group ID can be used in the text file but it also works without it.

        Please test it!
          • 31471
          • 206 Posts
          First bugfix (not my tongue )
            • 7690
            • 166 Posts
            to bump this up.

            What when i want modx to generate the passwords?
              • 7455
              • 2,204 Posts
              Quote from: DNA at Dec 08, 2009, 01:55 AM

              to bump this up.

              What when i want modx to generate the passwords?

              you could add a small password generator in it or use the one modx uses, but then how will the users know what the password is?
              you should maybe print them to the screen?
              once in the db its md5 and not reversible.

              next pice wil generate a password like modx uses:
              // Generate password
              function generate_password($length = 10) {
              	$allowable_characters = "abcdefghjkmnpqrstuvxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789";
              	$ps_len = strlen($allowable_characters);
              	mt_srand((double) microtime() * 1000000);
              	$pass = "";
              	for ($i = 0; $i < $length; $i++) {
              		$pass .= $allowable_characters[mt_rand(0, $ps_len -1)];
              	}
              	return $pass;
              }
              $password = generate_password();
              


              that could be used in the while loop and maybe echo the usename and password to the screen in the same loop.

              hope that helps
                follow me on twitter: @dimmy01
                • 31471
                • 206 Posts
                I added Dimmy’s code snippet to this module. Check it!

                Features:
                - Now if password field is empty the module will (hopefully) generate one.
                - If ’Send notifications’ checkbox is checked the module will send out WebSignup Email.
                - If a user already exists the module will skip it and echo an error message.
                - Optional password encripting (don’t store passwords unencripted!)
                  • 7455
                  • 2,204 Posts
                  Nice work vhollo.

                  thanks
                    follow me on twitter: @dimmy01
                    • 7690
                    • 166 Posts
                    Quote from: vhollo at Dec 09, 2009, 08:38 AM

                    - If ’Send notifications’ checkbox is checked the module will send out WebSignup Email.

                    great work, but what do you mean with websignup email? What is the difference with the previous version ’send notifications’?
                      • 31471
                      • 206 Posts
                      That function didn’t change from the previous beta. I just highlighted the new features compared to the repository version.

                      You can edit the template of the Websignup Email in the Manager (Tools -> Configuration -> User).