Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 9 Years, 11 Months, 2 Weeks ago When does the $plugins->run_hooks fire it's instance?
#3
Solved: 9 Years, 11 Months, 2 Weeks ago
Because i am developing a SSO (single sign-on) system used with mybb, i am halfway through all neccessary functions but i need to update a password of a mybb user after a password reset, as my frontend system only generates a new password after a reset and not for the mybb user, therefore i made a plugin to force users to change their password within the frontend system.

Once the frontend user updates and saves their "new password" it does not update the mybb user's password since the mybb user was not logged in when the password change process was done and therefore the password for mybb was never set.

I am able to update the password for a mybb user when both systems are authenticated at the same time but not when mybb is not authenticated.

Should i update the password with a simple mysql query update function? Because this is the only way that i can think of that works without being logged in since the password change is happening straight through php into mysql and not in mybb into mysql.

Since mybb disagrees the usage of admin hooks while not authenticated as a super user or administrator.

Give me some advice on what to do, I'd appreciate it very much.
Thanks.


Messages In This Thread
RE: When does the $plugins->run_hooks fire it's instance? - by bowkilled - 2012-07-07, 03:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)