MyBB Community Forums

Full Version: Auth Code Mismatch (MOBILE ONLY)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
EDIT: Solved. Make sure your cookie url and path settings are correct in the acp!



Hello,
When trying to log in to my forum on a mobile device, I get the auth code mismatch error.
To clarify, I can log in perfectly on desktop, only mobile (iPhone) gives this error.

Here are the steps I've already taken..
  • Used this plugin to patch things
  • Enabled "Scrutinize User's IP Address"
Here is my member_login template:
<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">
	<div class="wrapped halfwidth margincenter">
		<div class="thead"><strong class="cat_title">{$lang->login}</strong><span style="color:#8c2b2b;float:right;"><a href="/member.php?action=lostpw">[ Lost your password? ]</a></span></div>
		<div class="layer">
			<div class="fullwidth">
				<p><input type="text" class="textbox fullwidth" name="username" size="25" value="{$username}" placeholder="Username"></p>
				<p><input type="password" class="textbox fullwidth" name="password" size="25" value="{$password}" placeholder="Password (case sensitive)"></p>
				<p align="center" style="margin:0"><label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" checked="checked" value="yes"> Remember me</label></p>
			</div>
		</div>
		{$captcha}
		<div class="layer ">
			<button type="submit" name="submit" style="border:0;outline:0;padding:12px;border-radius:1px;" class="fullwidth swal-button"><span style="font-size:30px;font-style:italic;"><i class="fas fa-paper-plane"></i> Login</span></button>
		</div>
	</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>
<br />
{$footer}
</body>
</html>

If anyone knows why this is happening I would be very grateful.

Not really sure how this is possible, considering I have all of the necessary elements and everything works on desktop. What is the difference? It's just all the same theme.

Also should mention browser cache has been cleared on mobile multiple times.

I also found this post from 2019 that was never answered with the same problem; I guess there isn't a known solution.

https://community.mybb.com/thread-222521...pid1328377

I've tested on a Google Pixel using chrome and it works. Meaning, the mismatch error is not shown. This seems to only happen on iPhones...