Access users database externally

Permalink
Hi,
When an user registers in my website, I would also like to register them in concrete5. Basically I want to access Concrete5 database using SQL/PHP. However, since the password (upassword in Users) is encrypted with 'PASSWORD_SALT?', when I'm directly insert a row into table, concretet5 doesn't seem to recognize password when I try to log-in with it.
So my question is what should I do to make c5 recognize it?

Many Thanks

 
firepixel replied on at Permalink Reply
firepixel
Check the API reference here -http://www.concrete5.org/api/Users/User.html....

There is a function encryptPassword that might be what you are looking for.
Mnkras replied on at Permalink Reply
Mnkras
just use the User::add() method,