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?
#4
Solved: 9 Years, 11 Months, 2 Weeks ago
in your frontend code where you are forcing the reset and have the plain text password, just replicate the mybb password hash routine from the member.php do_login action and directly update the mybb database directly from your code.

this would be the same password hash routine you are using for SSO authentication

include the mybb config.php file so you have the credentials to the DB and then connect to it and update the user table. be sure to generate a new salt during the reset and update the user table with the new salt and the new password hash.

btw, what i am saying is that you dont need any hooks, just directly manipulate the DB
Lost interest, sold my sites, will browse here once in a while. It's been fun.


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

Forum Jump:


Users browsing this thread: 1 Guest(s)