I was bored so i'm developing this plugin/mod. Auth2My use Google's 2-step verification (time based) to login admin panel. 2-step verification adds an extra layer of security to your admin accounts by requiring them to enter a verification code in addition to their username and password.
Here is sample pictures:
You need to edit core files for this mod. Here is guide how to edit and install.
1. Download plugin (attachment), unzip and upload files from "upload" folder to your forum root folder.
2. Go to your admin panel and install Auth2My -plugin. Then you can see Auth2my link in "Configuration" tab, go there and scan QR-image with your Android Google Authenticator or iPhone Google Authenticator app.
3. Open admin/inc/class_page.php and find these lines (around line 389):
Open admin/index.php and find these lines (around line 129):
4. Logout and test login to admin panel.
Here is sample pictures:
You need to edit core files for this mod. Here is guide how to edit and install.
1. Download plugin (attachment), unzip and upload files from "upload" folder to your forum root folder.
2. Go to your admin panel and install Auth2My -plugin. Then you can see Auth2my link in "Configuration" tab, go there and scan QR-image with your Android Google Authenticator or iPhone Google Authenticator app.
3. Open admin/inc/class_page.php and find these lines (around line 389):
<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>
Add these below:<div class="label"{$login_label_width}><label for="auth2my">Auth2:</label></div>
<div class="field"><input type="password" name="auth2my" id="auth2my" class="text_input" /></div>
Open admin/index.php and find these lines (around line 129):
if($user['uid'])
{
$query = $db->simple_select("users", "*", "uid='".$user['uid']."'");
$mybb->user = $db->fetch_array($query);
}
Add these below: require_once MYBB_ROOT."inc/3rdparty/auth2my_class.php";
$query = $db->simple_select("auth2my", "*", "id='1'");
$auth2my = $db->fetch_array($query);
$auth2my_verify = Google2FA::verify_key($auth2my['auth2my_key'], $mybb->input['auth2my']);
if ($auth2my_verify == false && $auth2my['auth2my_active'] == "yes") {
$default_page->show_login("Invalid Auth2","error");
}
4. Logout and test login to admin panel.