Website Membership: Slow Signup Emails

15 posts by 4 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: March 26, 2012   (RSS)

Re: [goodonyx] Website Membership: Slow Signup Emails

By Jason - October 12, 2011

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 - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Toledoh - March 25, 2012

Hi Guys,

Is this still the same process with the latest version of the membership plugin?

I'm not sure whether to delete just the first line, or all three lines below;

// generate password
$password = substr(md5(uniqid(mt_rand(), true)), 15); // example output: c5560251ef0b3eef9
if (@$SETTINGS['advanced']['encryptPasswords']) { $passwordHash = getPasswordDigest($password); }
else { $passwordHash = $password; }


I've tried both, and I've tried changing bits and pieces of;

password = '".mysql_escape( $passwordHash )."',

but the password entered via the form, doesn't seem to get added to the admin, and I was thinking it had something to do with the encryption?
Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] Website Membership: Slow Signup Emails

By Jason - March 26, 2012

Hi Tim,

Is nothing getting added to the user account in the password field? Is the rest of the record created properly?

If you could attach your entire .php file, we can take a closer look at this for you.

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Toledoh - March 26, 2012 - edited: March 26, 2012

Hi Jason,

Uhhhmmm. seems to be magically working now

[blush]

Thanks!
Cheers,

Tim (toledoh.com.au)
Attachments:

user-signup_v2.php 14K