MyBB Community Forums

Full Version: Using external system for authentication
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Does anyone have or know of references on how to authenticate myBB users using an external system?

thanks.
In inc/functions_user.php, you can probably modify validate_password_from_uid() which takes care with checking the password on login. Various bits of code in member.php and class_session.php deal with the cookies that keep the user logged in.

If you do change it so that it uses another authentication system, I'd recommend making a copy of the user into the mybb_users table, so that MyBB can have that user as a reference for post author data, permissions, etc. Or else you will have to end up making a lot of modifications to MyBB for it to find user data in another location.