MyBB Community Forums

Full Version: which code auto logs in user on registration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi all,

if a user registers on mybb forum,

which code segment logs in user automatic even he has not activated the account from activation code sent to his email address.

is there any hook , i want to make user stop auto login via my plugin and show him some custom stuff on my page.
There is a Plugin, to "Force User to Log-out".

Auto Login = Remember Me?
Remember Me? = Saves a Cache/cookies in browser data
Only way to stop that is ask him to clear his cache/cookies or use a plugin.

or run this query to log out ALL users:

UPDATE mybb_users SET loginkey=''
i am making a plugin, on user registration complete, i have added same user as new user for wordpress via curl or via query for db on same host. it works.

but after making account on fourm site like mybb , user is autmatically logged in. at this point where mybb logs in user, i want to create wordpress login cookie as user is registered on wordpress too.

after member_do_register_end which hook runs and makes user cookie, so on that hook i can bind my method which will create wp user login cookie???

i am not dealing with remember me or force logout. there are some steps forward.