Sign-up - immediate access

By Toledoh - March 23, 2015

Hi Guys,

I'm sure it's here somewhere but I can't find it.

How can I allow people to sign-up via user-signup.php with Name and Email, then have them logged in - ie, removing the email / password loop?

Cheers,

Tim (toledoh.com.au)

By Toledoh - March 25, 2015

Hey Dave. It's just really an email capture process. A blog site gives away additional arricles to registered users. We are not that fussed if those are fake users. 

Cheers,

Tim (toledoh.com.au)

By Toledoh - March 27, 2015

Any thoughts on this?

Cheers,

Tim (toledoh.com.au)

By Dave - March 30, 2015

Hi Tim, 

Trying calling this code in the header of the page after any error checking code but _before_ you output any HTML and passing it the new username and password:

loginCookie_set($username, getPasswordDigest($plaintextPassword));

Let me know if that works for you.

Thanks!

Dave Edis - Senior Developer
interactivetools.com