News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Signon bridge plugin

Started by PHPLicengine, December 01, 2014, 02:25:13 AM

Previous topic - Next topic

PHPLicengine

Does SMF has a signon bridge plugin? I mean when someone creates an account on main site, an account will be created in smf automatically too? If there is no plugin and I need direct injection into smf db, please advice about tables dependencies, does it need to inject a row in any table other than users table too?
Another question? What us password method? Sha1 requires a salt too? And how is bcrypt password method on smf 2.1? Does it require a salt too?

margarett

We usually recommend the other way around: to use SMF's registration/login mechanism.

If you need to use your own system, you can use SMF's API
http://www.simplemachines.org/community/index.php?topic=453008.0
http://wiki.simplemachines.org/smf/SMF_API

That allows you to register members and other goodies (look at the code, it should be self-explanatory ;) )

SMF's password (for 1.1/2.0) is sha1
sha1(strtolower($username) . $password)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

And yes, creating a user involves more than just the members table.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

PHPLicengine

#3
Thanks for the link. I am on phone and did not yet download api, at meanwhile let me know
does the function smafapi_register() return any false/true response in case of un/successful request?

http://www.simplemachines.org/community/index.php?topic=453008.msg3233106#msg3233106


margarett

It returns an int (member ID just created) if successful or an array (of strings) in case of errors
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: