insert user from piping script
- D Oliveira
- AppGini Super Hero
- Posts: 348
- Joined: 2018-03-04 09:30
- Location: David
insert user from piping script
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?
- D Oliveira
- AppGini Super Hero
- Posts: 348
- Joined: 2018-03-04 09:30
- Location: David
Re: insert user from piping script
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);