added google authenticator support to the gui

This commit is contained in:
SJ
2013-10-16 14:55:17 +02:00
parent 62e5dc8afa
commit dae73a577a
50 changed files with 10676 additions and 39 deletions

View File

@ -102,12 +102,38 @@
</div>
</div>
</form>
<p>&nbsp;</p>
<div id="search">
<h4><?php print $text_google_authenticator_settings; ?></h4>
<div id="search1">
<div class="row">
<div class="logincell"><?php print $text_enable; ?>:</div>
<div class="logincell"><input type="checkbox" name="ga_enabled" id="ga_enabled" onclick="Piler.toggle_ga();" <?php if($ga['ga_enabled'] == 1) { ?>checked="checked"<?php } ?> /></div>
</div>
<div class="row">
<div class="logincell"><?php print $text_qr_code; ?>:</div>
<div id="QR" class="logincell">
<?php print $ga['ga_secret']; ?> <a href="#" onclick="Piler.new_qr(); return false;"><?php print $text_refresh_qr_code; ?></a><br /><img src="qr.php?ts=<?php print time(); ?>" />
</div>
</div>
</div>
<p>&nbsp;</p>
<?php if(PASSWORD_CHANGE_ENABLED == 1) { ?>
<div id="search">
<form method="post" name="pwdchange" action="settings.php" class="formbottom">