diff --git a/views/bootstrap/class.MyAccount.php b/views/bootstrap/class.MyAccount.php index a999e3134..bbc51152d 100644 --- a/views/bootstrap/class.MyAccount.php +++ b/views/bootstrap/class.MyAccount.php @@ -31,6 +31,18 @@ require_once("class.Bootstrap.php"); */ class SeedDMS_View_MyAccount extends SeedDMS_Bootstrap_Style { + function js() { /* {{{ */ + header('Content-Type: application/javascript'); +?> +$(document).ready( function() { + $('#qrcode').hide(); + $( "#toggleqrcode" ).click(function() { + $('#qrcode').toggle(); + }); +}); +params['dms']; $user = $this->params['user']; @@ -63,6 +75,20 @@ class SeedDMS_View_MyAccount extends SeedDMS_Bootstrap_Style { echo "
| ".getMLText("name")." : | \n"; @@ -111,8 +137,22 @@ class SeedDMS_View_MyAccount extends SeedDMS_Bootstrap_Style { \n"; print "|
| \n"; + echo getMLText('2_factor_auth'); + print " | \n"; + print "\n";
+ echo '';
+ echo ' ';
+ echo 'Code is: '.$code = $tfa->getCode($secret)." ";
+ print ""; + echo 'Secret: '.$secret." "; + echo ' | \n";
+ print "