10-26-2018, 04:25 PM
(This post was last modified: 10-26-2018, 04:27 PM by OnlyTechNation.)
(10-22-2018, 01:39 AM)BlazeMC Wrote: Hello. Before I start to write, I would like to point out that I am from Germany and therefore can not speak English so well. Sorry about my mistakes!
I have the problem, if I want to log in to the website, the following text is there:
Wrong authorization code! Do you access this feature in the usual way? Please go back and try again.
I use version 1.5.
I never get an e-mail either. Do you know why that could be?
Sincerely: Jojo
Quote:Shade (MyBB Former Staff) WroteYou must edit this in ALL your installed themes if the code is not in your templates already. Some custom themes DO NOT have the <form action="member.php"> or are differently named, just put the new code underneath the code that looks similar to the code.
MyBB 1.8.16 introduces some crucial changes aimed towards better security regarding users authentication. Templates containing login forms must be updated in order to comply with these changes; otherwise, you will stumble upon the following error:
Quote: Wrote:Authorization code mismatch. Are you accessing this function correctly? Please go back and try again.
If you have upgraded to 1.8.16 or above, please read the following instructions carefully.
Templates requiring changes:1. Localize form tag
- error_nopermission
- header_welcomeblock_guest
- member_login
- portal_welcome_guesttext
Open each template and look for <form action="member.php" *>. They are the forms you use when logging in. The form tag will likely include other attributes, which you can ignore.
2. Add token
Add after <form action="member.php"> the following piece of code:
Code:<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
None
Select All
It's that simple. Your users will now be able to login again. my_post_key input is in fact now mandatory to be sent alongside other form parameters in order to reduce potential malicious attacks.
Note that upgrade scripts will revert naïve templates and will handle the change automatically. This guide is aimed at all who have custom themes with these templates customized.
This is the only fix right now for this issue. Just follow the steps and you will fix your issue.