Page 1 of 1

insert user from piping script

Posted: 2020-01-07 21:50
by D Oliveira
hi! im selling a subscription product and once the confirmation email is sent to the user i am also sending a bcc to my server email to create an account in the appgini application, my question is how to hash the password the same way appgini mechanism does it?

Re: insert user from piping script

Posted: 2020-01-08 03:31
by D Oliveira
nevermind found it :)

Code: Select all


	sql("INSERT INTO `membership_users` set memberID='{$email}', passMD5='" . password_hash('userpasswordstring', PASSWORD_DEFAULT) . "', email='{$email}', signupDate='" . @date('Y-m-d') . "', groupID='7', isBanned='0', isApproved='1', custom1='{$date2}', custom2='', custom3='', custom4='', comments=''", $eo);