-
- 38 Posts
Has anyone done this?
I’m using WebloginPE, which rocks, but would like to allow users to login with both their email address or username.
-
- 130 Posts
I changed that line but am a little confused on this. So do we hide the username field? How do you make that NOT required for registration.
I read about using the javascript solution to juse add the value of the email to the username but I guess I missed whether or not that’d work on someone who has javascript disabled.
Basically what I’m asking is on the registration form, do we hide one of the fields? Thanks for the help.
I twitch because I care....and drink too much coffee.
-
- 130 Posts
Can anyone confirm the above solution? Anyone out there......
I twitch because I care....and drink too much coffee.
-
- 386 Posts
You can hide the username in the sign up form but you need to ensure that the username is set to the value of the email in the $_POST array when the form is submitted, ie:
$_POST[’username’] = $_POST[’email’];
Add this to the Register() function in webloginpe.class.php right at the top of the function.
-
- 130 Posts
That worked perfectly thanks! Now if I could only get my custom fields to save to the DB I’d be one happy camper
I twitch because I care....and drink too much coffee.