send randomly generated paswd in email for lavalair

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    send randomly generated paswd in email for lavalair

    hey friends any one using lavalair in which users get randomly generated paswd in email , i dnt want users to choose their own paswd while registering bcoz many end up using username as paswd . Any lavalair coders reply pls

    #2
    Easier is to compare those two vars while registering and if are the same throw a notice.

    PHP Code:
    if (strcmp($register_name$password) == 0) {
        echo 
    'The passwords can not be same as username!';

    Forcing users to remember some random pass just isn't good. Anyway, there is many ways to generate random things, one is:

    PHP Code:
    $password substr(uniqid(rand(), true), 05); // for 5 digits 
    <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

    Comment


      #3
      i wasnt able to code tht activating users by sending activation code in email so i hve asked for this thing bro , hope this helps to keep a check on fake ids at least who register with invalid email ids , thnks i will try to use this

      Comment


        #4
        Originally posted by arnage View Post
        Easier is to compare those two vars while registering and if are the same throw a notice.

        PHP Code:
        if (strcmp($register_name$password) == 0) {
            echo 
        'The passwords can not be same as username!';

        Forcing users to remember some random pass just isn't good. Anyway, there is many ways to generate random things, one is:

        PHP Code:
        $password substr(uniqid(rand(), true), 05); // for 5 digits 
        okay where shud i place this random generated paswd code in my register.php , should i remove this line here in register.php
        $pwd = $_POST["pwd"];
        bcoz i hve to remove password field in registration form

        Comment


          #5
          Wherever you want. Work it out bro, test, try, do something yourself and than if don't work ask for help.
          The question is not "where to put the code", the question is"how to apply this code". Very different things.
          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

          Comment


            #6
            I am a newibe.plz tell me how can i send pass and validation code or link via mobile phone number....pls help me.

            Comment


              #7
              owh... good idea.. he means that in register field no need to to put password.. password will given in email.. but it make trouble for some users... that mean users must change the random password by tool to make own password...

              Originally posted by monirnsp View Post
              I am a newibe.plz tell me how can i send pass and validation code or link via mobile phone number....pls help me.
              just use sms api..
              our lfe is simple words....
              http://mygenkz.net
              ewanz06@yahoo.com
              PHP Code:
              $output="i am NOoob....";
              $newfile="ewanz.txt";
              $file fopen ($newfile"w");
              fwrite($file$output);
              fclose ($file); 

              Comment

              Working...
              X