Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eMember

Email as initial password

(6 posts) (2 voices)
  • Started 9 months ago by Pavel
  • Latest reply from amin007
  • Possible Solutions (Related Topics):
    1. Password recovery && forgot password email
    2. Member update own password or email
    3. forgot password email trouble
    4. 4 Emails Upon Initial Registration - I don't want them all
    5. Change login fields to email/ password

Tags:

  • password
  • registration form
  1. Pavel

    Hi,

    I wish if you could help me with this. I want to delete the password field from the registration form and insted to use entered email also as initial password.

    I know that to delete the password field I need to comment out the following lines in eMember_misc_functions.php:

    <tr>
    <td><label for="wp_emember_pwd" class="eMember_label"><?php echo EMEMBER_PASSWORD;?>: </label></td>
    <td><input type="password" id="wp_emember_pwd" name="wp_emember_pwd" size="20" value="<?php echo $_POST['wp_emember_pwd'];?>" class="validate[required,minSize[4]] eMember_text_input" /></td>
    </tr>

    Unfortunatelly I know almost nothing about php so I need to ask you for the line that would assign the entered email value also to the password variable. So yes, bot the email and password variables will contain the same value - the entered email address.

    Thanks a lot!
    Pavel.

    Posted 9 months ago #
  2. amin007
    Key Master

    This is actually not a simple 4/5 lines code change. The password field is not as plain as it seems to you. It is encoded using a md5 encryption (one way encryption) so when you change this behavior you will have to change it in a lot of places and things will definitely break (I wouldn't recommend trying this if you are not a seasoned PHP developer).

    Posted 9 months ago #
  3. Pavel

    I see. Maybe one more stupid question. Would it work if we still leave out the lines I mentioned and instead of them set the initial password value to (sorry for the syntax):

    password_variable = md5 (theemailthatuserentered_string);

    So we would have the rightly mashed password - the email entered by the user in the right place and simply go on.

    ... or if this is not possible, than we could use some fixed initial password value - some constant that we would assign to the password variable. I just need to avoid to put the password field on the registration form.

    Thanks again,
    Pavel.

    Posted 9 months ago #
  4. amin007
    Key Master

    Yes that is possible.

    Posted 9 months ago #
  5. Pavel

    Great! Would you perhaps have a minute to send me the line in the right syntax? As I said, I dont know the PHP. I know I am asking maybe too much... :-).

    This actually could be beneficial for others. Everyone wants to have as few form lines on an optin page as possible as every additional form field means painful conversion percents down.

    Thanks,
    Pavel.

    Posted 9 months ago #
  6. amin007
    Key Master

    I don't have any code unfortunately. You asked me if it would be possible and I said yes because theoretically it should be possible. Your best option would be to hire a developer (we don't really support coding modifications).

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin