insert user from piping script

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

insert user from piping script

Post by D Oliveira » 2020-01-07 21:50

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?

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

Re: insert user from piping script

Post by D Oliveira » 2020-01-08 03:31

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);



Post Reply