Tips and Tricks HQ Support Portal › Forums › WP eMember › Email as initial password
Tagged: password, registration form
- This topic has 5 replies, 2 voices, and was last updated 13 years, 3 months ago by amin007.
-
AuthorPosts
-
July 30, 2011 at 9:31 pm #3937PavelMember
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;?>” 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.
July 31, 2011 at 1:09 am #34940amin007ParticipantThis 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).
July 31, 2011 at 6:12 am #34941PavelMemberI 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.
July 31, 2011 at 11:34 pm #34942amin007ParticipantYes that is possible.
August 1, 2011 at 7:22 am #34943PavelMemberGreat! 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.
August 2, 2011 at 12:24 am #34944amin007ParticipantI 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).
-
AuthorPosts
- You must be logged in to reply to this topic.