Customizing SMF > Portals, Bridges, and Integrations
Should I use Member ID or Name for integration?
Kindred:
username is loginname and is rarely changed (and if it is, the login to the other site should also be changed)
realname is the display name and is frequently changed... but defaults to be the same as username on the first login.
as you note, ID is not assigned until the registration is complete and the database table is written.
besides, ID could different between softwares, so username is the best choice to match.
Ardenstone:
Thanks, Kindred. Sounds like I will key off username and also need to track down whatever event gets fired if that changes and hook into it, too. I think I saw that the other day.
The other system doesn't actually have its own login system anymore, I'm simply making a call to get the username (was getting ID) from SMF and query the database which has it mapped to a user ID in the other system. I intentionally designed it so the login system could be swapped out, so it won't have its own going forward.
Navigation
[0] Message Index
[*] Previous page
Go to full version