Jump to the post that solved this thread.
Solved: 6 Years, 6 Months, 3 Weeks ago Authorization code mismatch. (Even mybb.com have this problem)
#21
Solved: 6 Years, 6 Months, 3 Weeks ago
(2018-07-06, 04:22 PM)wageral Wrote: Thanks a lot Devilshakerz; that works!
The only template i could'nt find is the last one "quick_login". Where can I find this one? Is it in a special group?
PS: I use the default MyBB theme.

That might've been a mistake as someone else also pointed out - thanks, removed from the list.
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
#22
Solved: 6 Years, 6 Months, 3 Weeks ago
(2018-07-06, 04:05 PM)Devilshakerz Wrote:
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
will need to be added between <form... and </form> tags in the following templates:
  • error_nopermission
  • header_welcomeblock_guest (change included in 1.8.16)
  • member_login (change included in 1.8.16)
  • portal_welcome_guesttext

Third-party software that make requests to MyBB in order to log users in will need to be modified by developers to send the token as well.

Pushed: https://github.com/mybb/mybb/issues/3323
#23
Solved: 6 Years, 6 Months, 3 Weeks ago
(2018-07-06, 04:05 PM)Devilshakerz Wrote:
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
will need to be added between <form... and </form> tags in the following templates:
  • error_nopermission
  • header_welcomeblock_guest (change included in 1.8.16)
  • member_login (change included in 1.8.16)
  • portal_welcome_guesttext

Third-party software that make requests to MyBB in order to log users in will need to be modified by developers to send the token as well.

Great, I thank to mybb staff, developers and all others who came to this topic to help us.  
I like when things get fixed fast. (Yes, this worked for me and fixed my problem)
iAndrew & NickGHQ - Respect!!
#24
Solved: 6 Years, 6 Months, 3 Weeks ago
(2018-07-06, 04:05 PM)Devilshakerz Wrote:
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
will need to be added between <form... and </form> tags in the following templates:
  • error_nopermission
  • header_welcomeblock_guest (change included in 1.8.16)
  • member_login (change included in 1.8.16)
  • portal_welcome_guesttext

Third-party software that make requests to MyBB in order to log users in will need to be modified by developers to send the token as well.

its worked.  thank you so much....
#25
Solved: 6 Years, 6 Months, 3 Weeks ago
every thing i do it is not working for me Sad
For me this guide did not fix this issue. 
Okay .. Maybe My editing it wasn't right so will post it here.

error_nopermission

{$lang->error_nopermission_guest_1}
<ol>
<li>{$lang->error_nopermission_guest_2}</li>
<li>{$lang->error_nopermission_guest_3}</li>
<li>{$lang->error_nopermission_guest_4}</li>
<li>{$lang->error_nopermission_guest_5}</li>
</ol>
<form action="member.php" method="post">
	<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="{$redirect_url}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><span class="smalltext"><strong>{$lang->login}</strong></span></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang_username}</strong></td>
<td class="trow1"><input type="text" class="textbox" name="username" tabindex="1" /></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->password}</strong></td>
<td class="trow2"><input type="password" class="textbox" name="password" tabindex="2" /></td>
</tr>
<tr>
<td class="trow2" colspan="2"><span class="smalltext float_right" style="padding-top: 3px;"><a href="member.php?action=register">{$lang->need_reg}</a> | <a href="member.php?action=lostpw">{$lang->forgot_password}</a>&nbsp;</span>&nbsp;<input type="submit" class="button" value="{$lang->login}" tabindex="3" /></td>
</tr>
</table>
</form>
<br />

header_welcomeblock_guest

	   <!-- Continuation of div(class="upper") as opened in the header template -->
                        <span class="welcome">{$lang->welcome_guest} <a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;" class="login">{$lang->welcome_login}</a> <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a> </span>
     

                    </div>
                </div>
                <div class="modal" id="quick_login" style="display: none;">
                    <form method="post" action="{$mybb->settings['bburl']}/member.php">
                    
                        <input name="action" type="hidden" value="do_login" />
                        <input name="url" type="hidden" value="" />
                        <input name="quick_login" type="hidden" value="1" />
                        <input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
                        <table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" class="tborder">
                            <tr>
                                <td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
                            </tr>
                            <tr>
                                <td class="trow1" width="25%"><strong>{$login_username}</strong></td>
                                <td class="trow1"><input name="quick_username" id="quick_login_username" type="text" value="" class="textbox initial_focus" /></td>
                            </tr>
                            <tr>
                                <td class="trow2"><strong>{$lang->password}</strong></td>
                                <td class="trow2">
                                    <input name="quick_password" id="quick_login_password" type="password" value="" class="textbox" /> <a href="{$mybb->settings['bburl']}/member.php?action=lostpw" class="lost_password">{$lang->lost_password}</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="trow1">&nbsp;</td>
                                <td class="trow1 remember_me">
                                    <input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
                                    <label for="quick_login_remember">{$lang->remember_me}</label>
                                </td>
                            </tr>
                            <tr>
                                <td class="trow2" colspan="2">
                                    <div align="center"><input name="submit" type="submit" class="button" value="{$lang->login}" /></div>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
                <script type="text/javascript">
                    $("#quick_login input[name='url']").val($(location).attr('href'));
                </script> 				
member login 
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->login}</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
{$inline_errors}
{$member_loggedin_notice}
<form action="member.php" method="post">
	
	
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
</tr>
<tr>
                           
                       
     
    
<td class="trow1"><strong>{$lang->username}</strong></td>
<td class="trow1"><input type="text" class="textbox" name="username" size="25" style="width: 200px;" value="{$username}" /></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->password}</strong><br /><span class="smalltext">{$lang->pw_note}</span></td>
<td class="trow2"><input type="password" class="textbox" name="password" size="25" style="width: 200px;" value="{$password}" /> (<a href="member.php?action=lostpw">{$lang->lostpw_note}</a>)</td>
</tr>
<tr>
<td class="trow1" colspan="2" align="center"><label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" checked="checked" value="yes" /> {$lang->remember_me}</label></td>
     
    
                           
                       
</tr>
{$captcha}
</table>
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->login}" /></div>
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="{$redirect_url}" />
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
</form>
{$footer}
</body>
</html>

portal_welcome_guesttext

<span class="smalltext">{$lang->guest_welcome_registration}</span><br />
<br />
<form method="post" action="{$mybb->settings['bburl']}/member.php">
	<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />	
	<input type="hidden" name="action" value="do_login" /><input type="hidden" name="url" value="{$portal_url}" />
{$username}<br />&nbsp;&nbsp;<input type="text" class="textbox" name="username" value="" /><br /><br />
{$lang->password}<br />&nbsp;&nbsp;<input type="password" class="textbox" name="password" value="" /><br /><br />
<label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" value="yes" /> {$lang->remember_me}</label><br /><br />
<br /><input type="submit" class="button" name="loginsubmit" value="{$lang->login}" /></form>



(2018-07-06, 04:05 PM)Devilshakerz Wrote:
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
will need to be added between <form... and </form> tags in the following templates:
  • error_nopermission
  • header_welcomeblock_guest (change included in 1.8.16)
  • member_login (change included in 1.8.16)
  • portal_welcome_guesttext

Third-party software that make requests to MyBB in order to log users in will need to be modified by developers to send the token as well.
#26
Solved: 6 Years, 6 Months, 3 Weeks ago
(2018-07-09, 06:35 PM)Ronshaan Wrote: every thing i do it is not working for me Sad
For me this guide did not fix this issue. 
Okay .. Maybe My editing it wasn't right so will post it here.

error_nopermission

{$lang->error_nopermission_guest_1}
<ol>
<li>{$lang->error_nopermission_guest_2}</li>
<li>{$lang->error_nopermission_guest_3}</li>
<li>{$lang->error_nopermission_guest_4}</li>
<li>{$lang->error_nopermission_guest_5}</li>
</ol>
<form action="member.php" method="post">
	<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="{$redirect_url}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><span class="smalltext"><strong>{$lang->login}</strong></span></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang_username}</strong></td>
<td class="trow1"><input type="text" class="textbox" name="username" tabindex="1" /></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->password}</strong></td>
<td class="trow2"><input type="password" class="textbox" name="password" tabindex="2" /></td>
</tr>
<tr>
<td class="trow2" colspan="2"><span class="smalltext float_right" style="padding-top: 3px;"><a href="member.php?action=register">{$lang->need_reg}</a> | <a href="member.php?action=lostpw">{$lang->forgot_password}</a>&nbsp;</span>&nbsp;<input type="submit" class="button" value="{$lang->login}" tabindex="3" /></td>
</tr>
</table>
</form>
<br />

header_welcomeblock_guest

	   <!-- Continuation of div(class="upper") as opened in the header template -->
                        <span class="welcome">{$lang->welcome_guest} <a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;" class="login">{$lang->welcome_login}</a> <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a> </span>
     

                    </div>
                </div>
                <div class="modal" id="quick_login" style="display: none;">
                    <form method="post" action="{$mybb->settings['bburl']}/member.php">
                    
                        <input name="action" type="hidden" value="do_login" />
                        <input name="url" type="hidden" value="" />
                        <input name="quick_login" type="hidden" value="1" />
                        <input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
                        <table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" class="tborder">
                            <tr>
                                <td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
                            </tr>
                            <tr>
                                <td class="trow1" width="25%"><strong>{$login_username}</strong></td>
                                <td class="trow1"><input name="quick_username" id="quick_login_username" type="text" value="" class="textbox initial_focus" /></td>
                            </tr>
                            <tr>
                                <td class="trow2"><strong>{$lang->password}</strong></td>
                                <td class="trow2">
                                    <input name="quick_password" id="quick_login_password" type="password" value="" class="textbox" /> <a href="{$mybb->settings['bburl']}/member.php?action=lostpw" class="lost_password">{$lang->lost_password}</a>
                                </td>
                            </tr>
                            <tr>
                                <td class="trow1">&nbsp;</td>
                                <td class="trow1 remember_me">
                                    <input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
                                    <label for="quick_login_remember">{$lang->remember_me}</label>
                                </td>
                            </tr>
                            <tr>
                                <td class="trow2" colspan="2">
                                    <div align="center"><input name="submit" type="submit" class="button" value="{$lang->login}" /></div>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
                <script type="text/javascript">
                    $("#quick_login input[name='url']").val($(location).attr('href'));
                </script> 				
I am aware of the problem, still login issues are there. 

Working on it 
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->login}</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
{$inline_errors}
{$member_loggedin_notice}
<form action="member.php" method="post">
	
	
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
</tr>
<tr>
                           
                       
     
    
<td class="trow1"><strong>{$lang->username}</strong></td>
<td class="trow1"><input type="text" class="textbox" name="username" size="25" style="width: 200px;" value="{$username}" /></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->password}</strong><br /><span class="smalltext">{$lang->pw_note}</span></td>
<td class="trow2"><input type="password" class="textbox" name="password" size="25" style="width: 200px;" value="{$password}" /> (<a href="member.php?action=lostpw">{$lang->lostpw_note}</a>)</td>
</tr>
<tr>
<td class="trow1" colspan="2" align="center"><label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" checked="checked" value="yes" /> {$lang->remember_me}</label></td>
     
    
                           
                       
</tr>
{$captcha}
</table>
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->login}" /></div>
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="{$redirect_url}" />
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
</form>
{$footer}
</body>
</html>

portal_welcome_guesttext

<span class="smalltext">{$lang->guest_welcome_registration}</span><br />
<br />
<form method="post" action="{$mybb->settings['bburl']}/member.php">
	<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />	
	<input type="hidden" name="action" value="do_login" /><input type="hidden" name="url" value="{$portal_url}" />
{$username}<br />&nbsp;&nbsp;<input type="text" class="textbox" name="username" value="" /><br /><br />
{$lang->password}<br />&nbsp;&nbsp;<input type="password" class="textbox" name="password" value="" /><br /><br />
<label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" value="yes" /> {$lang->remember_me}</label><br /><br />
<br /><input type="submit" class="button" name="loginsubmit" value="{$lang->login}" /></form>



(2018-07-06, 04:05 PM)Devilshakerz Wrote:
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
will need to be added between <form... and </form> tags in the following templates:
  • error_nopermission
  • header_welcomeblock_guest (change included in 1.8.16)
  • member_login (change included in 1.8.16)
  • portal_welcome_guesttext

Third-party software that make requests to MyBB in order to log users in will need to be modified by developers to send the token as well.
Thanks a lot.. It really helped me out of my problem
#27
Solved: 6 Years, 6 Months, 3 Weeks ago
strange for me it didn't work
how it worked for u
#28
Solved: 6 Years, 6 Months, 3 Weeks ago
(2018-07-09, 06:35 PM)Ronshaan Wrote: Working on it 

why not try the same way
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
</form>

put code before </form>
#29
Solved: 6 Years, 6 Months, 3 Weeks ago
where ever i put it, it doesnt change anything
i rcv the same error.

now strange thing happens.

I somehow managed to log in but when you try again , same error.
how can it be one time you can log in other time it doesnt work at all.
#30
Solved: 6 Years, 6 Months, 3 Weeks ago
How do I edit the templates that are preventing me from logging in, if I can not log in in order to edit the templates?
Paul King
MyBB version: 1.8.21
Forum: www.nzarchitecture.net.nz
Webpage: www.prime.net.nz
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 2 Guest(s)