
Jason
Staff
/ Moderator

Oct 12, 2011, 10:03 AM
Post #12 of 15
(7132 views)
Shortcut
|
|
Re: [goodonyx] Website Membership: Slow Signup Emails
[In reply to]
|
Can't Post
|
|
Hi Tim, Yes, once you've created the user account, you can trigger a login. In order to do this, we need 3 variables in the $_REQUEST array: username, password, and action. After that we can call the _websiteLogin_login(); function from the Website Membership plugin, which will complete the login. For example:
@$_REQUEST['action'] = "login"; _websiteLogin_login(); $errorsAndAlerts = alert(); This code assumes that $_REQUEST['username'] and $_REQUEST['password'] still have values in them from the form. If they don't you need to give them values. Also, if you are using password encryption, you must assign the unencrypted password to the $_REQUEST['password'] variable. Hope this helps --------------------------------------------------- Jason Sauchuk - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|