SMF API - Updating a user profile

Started by cbichis, June 08, 2010, 04:24:14 PM

Previous topic - Next topic

cbichis

Hello,

I am planning to use the SMF API to connect the a site database with the forum database, to keep in synch the users database.

Question: i saw on SMF API there is no update function for the case user profile should be changed by api (by example to change the email or the password).

How should i do such profile update then ? Is it just a simple SQL UPDATE on smf_members, or this operation is more complicated ?

Arantor

Changing the password is a case of rehashing the password (sha1(strtolower(username) . newpassword) and a table update, changing the email address is just a table update.

If you want to reapprove the member's email address, i.e. make them have another email confirmation that's a little trickier but doable.
Holder of controversial views, all of which my own.


Advertisement: