Add Secret PIN To ACP Login On MyBB. Your secret PIN helps prevent account theft, but this pin will also appear when you login to the ACP login.
So, let's get started.
Open ./admin/inc/class_page.php:
Around line 391:
Change
<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div> <div class="field"><input type="password" name="password" id="password" class="text_input" /></div>
To:
<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div> <div class="field"><input type="password" name="password" id="password" class="text_input" /></div> <div class="label"{$login_label_width}><label for="pin">Secret PIN</label></div> <div class="field"><input type="password" name="pin" id="pin" class="text_input" /></div>
next in ./admin/index.php
if($user['uid']) { $query = $db->simple_select("users", "*", "uid='".$user['uid']."'"); $mybb->user = $db->fetch_array($query); }
To:
if($user['uid']) { $query = $db->simple_select("users", "*", "uid='".$user['uid']."'"); $mybb->user = $db->fetch_array($query); } if (isset($config['acp_pin']) && $mybb->input['pin'] != $config['acp_pin']) { $default_page->show_login("Invalid PIN","error"); }
Ok. Then, open ./inc/config.php and add anywhere:
$config['acp_pin'] = 'yourpin';
Things To Know:
-The PIN does not have to be a number, it can be anything.
- If the PIN is not set in .inc/config.php, it will not be checked/verified.
Preview:
If the wrong PIN will like this picture
That's okay Add Secret PIN To ACP Login On MyBB, may be useful for you.
Title: Add Secret PIN To ACP Login On MyBB
Posted by:
Published :2013-08-20T10:00:00-07:00
Add Secret PIN To ACP Login On MyBB
Related articles:
Posted by:
Published :2013-08-20T10:00:00-07:00
Add Secret PIN To ACP Login On MyBB
0 comments :
Post a Comment