Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Authorization code mismatch errors
#11
Well, @nofeara, check your board. Reverted few templates to default.
There seems to be no problem remaining at all. I can login and logout smooth now.
[Image: logo.svg.svg]
Reply
#12
(05-19-2019, 05:48 AM)effone Wrote: Well, @nofeara, check your board. Reverted few templates to default.
There seems to be no problem remaining at all. I can login and logout smooth now.

Thanks for the help but, here is my recent login:

[Image: fIg72b3.png]

I really dunno how but In the mean time, version 1.8.15 seems not having this problem, not experiencing it for 4 days test, i got from this post: https://nulledbb.com/thread-Authorizatio...ase-go-bac
Reply
#13
I might be needing some more access to debug this as deep debug is not possible through ACP access only.
All I have inspected leads to a conclusion that its related to the $cache. MyBB's internal encryption key is not being saved in cache, resulting to regenerate it in every page load.

Since the post key for guests is generated depending on internal encryption key and as the key is being regenerated every time : when you post the form the post key provided with the form is not matching with latest as the internal encryption key is changed, the post key is also changed along with.
[Image: logo.svg.svg]
Reply
#14
(05-19-2019, 03:36 PM)effone Wrote: I might be needing some more access to debug this as deep debug is not possible through ACP access only.
All I have inspected leads to a conclusion that its related to the $cache. MyBB's internal encryption key is not being saved in cache, resulting to regenerate it in every page load.

Since the post key for guests is generated depending on internal encryption key and as the key is being regenerated every time : when you post the form the post key provided with the form is not matching with latest as the internal encryption key is changed, the post key is also changed along with.

I shot another pm for that deep access. I am really interested in helping this fix.

Thanks.
Reply
#15
@nofeara I am not getting the proper credential to test further; whatever you provide.
But the issue you are facing is completely different from others, and your issue is your post key is getting reset very frequently, as much I monitored: in every 5 seconds.

This is probably for the cache being reset as I have stated earlier. I wanted to monitor the cache, but I need core access for that.
May be kawaii can guess the reason, I'll ping him regarding this.
[Image: logo.svg.svg]
Reply
#16
(05-29-2019, 02:51 PM)effone Wrote: @nofeara I am not getting the proper credential to test further; whatever you provide.
But the issue you are facing is completely different from others, and your issue is your post key is getting reset very frequently, as much I monitored: in every 5 seconds.

This is probably for the cache being reset as I have stated earlier. I wanted to monitor the cache, but I need core access for that.
May be kawaii can guess the reason, I'll ping him regarding this.


Can i bypass that authorization key thing that is being implemented? Like i will just set a default authorization key for all accounts and just have the database make a default value so it will always match when new accounts are created? What files are responsible for this?

Your help is much appreciated.
Reply
#17
You can try this:
Open the inc/functions.php, go to line no. 627, find:
return md5($session->sid.$mybb->config['database']['username'].$mybb->settings['internal']['encryption_key']);

replace the line with:

return md5($session->sid . "some_raND0m_strin8");

Save the file, reupload / replace and see what happens.
[Image: logo.svg.svg]
Reply
#18
(06-01-2019, 08:10 AM)effone Wrote: You can try this:
Open the inc/functions.php, go to line no. 627, find:
return md5($session->sid.$mybb->config['database']['username'].$mybb->settings['internal']['encryption_key']);

replace the line with:

return md5($session->sid . "some_raND0m_strin8");

Save the file, reupload / replace and see what happens.

I think this is working but still will have to check if no errors will occur on the next logins...

Well it's not yet completely working cause iam experiencing this again:

[Image: WH5ZOBA.png]
Reply
#19
Just omit all and set a fixed MD5 then
return md5('nofeara');
[Image: logo.svg.svg]
Reply
#20
I'm also having the same problem. I also tried @effone option by editing the inc/function but still the same. :-(
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)