lemonldap-ng/lemonldap-ng-portal/site/templates/bootstrap/totp2fregister.tpl

67 lines
2.4 KiB
Smarty
Raw Normal View History

2018-04-01 22:27:50 +02:00
<TMPL_INCLUDE NAME="header.tpl">
<main id="menucontent" class="container">
2018-09-26 08:57:09 +02:00
<div id="color" class="message message-positive alert"><span id="msg" trspan="yourNewTotpKey"></span></div>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-6 text-center">
<div id="divToHide">
<canvas id="qr"></canvas>
<pre id="serialized"></pre>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="TOTPName"><span trspan="name">Name</span></label>
<input type="text" class="form-control" id="TOTPName" name="TOTPName" value="MyTOTP" trplaceholder="name" />
</div>
<div class="form-group">
<label for="code"><span trspan="code">Code</span></label>
<input id="code" class="form-control" name="code" type="number" />
</div>
</div>
</div>
<div class="buttons">
<span id="changekey" class="btn btn-secondary" role="button">
2018-09-26 18:14:34 +02:00
<span class="fa fa-refresh"></span>
2018-09-26 08:57:09 +02:00
<span trspan="changeKey">Change key</span>
</span>
<span id="verify" class="btn btn-success" role="button">
2018-09-26 18:14:34 +02:00
<span class="fa fa-check-circle"></span>
2018-09-26 08:57:09 +02:00
<span trspan="register">Register</span>
</span>
</div>
</div>
2018-04-01 22:27:50 +02:00
</div>
</main>
2018-04-03 22:58:49 +02:00
<div class="buttons">
2018-09-26 08:57:09 +02:00
<a href="<TMPL_VAR NAME="PORTAL_URL">2fregisters" class="btn btn-secondary" role="button">
2018-09-26 18:14:34 +02:00
<span class="fa fa-shield"></span>
<span trspan="sfaManager">sfaManager</span>
2018-04-03 22:58:49 +02:00
</a>
2018-08-20 00:08:50 +02:00
<a id="goback" href="<TMPL_VAR NAME="PORTAL_URL">?cancel=1<TMPL_IF NAME="AUTH_URL">&url=<TMPL_VAR NAME="AUTH_URL"></TMPL_IF>" class="btn btn-primary" role="button">
2018-09-26 18:14:34 +02:00
<span class="fa fa-home"></span>
2018-08-15 22:48:00 +02:00
<span trspan="goToPortal">Go to portal</span>
2018-04-01 22:27:50 +02:00
</a>
2018-04-03 22:58:49 +02:00
</div>
2018-04-01 22:27:50 +02:00
<!-- //if:jsminified
<script type="text/javascript" src="<TMPL_VAR NAME="STATIC_PREFIX">bwr/qrious/dist/qrious.min.js"></script>
<script type="text/javascript" src="<TMPL_VAR NAME="STATIC_PREFIX">/common/js/totpregistration.min.js"></script>
//else -->
<script type="text/javascript" src="<TMPL_VAR NAME="STATIC_PREFIX">bwr/qrious/dist/qrious.js"></script>
2018-04-15 11:02:48 +02:00
<script type="text/javascript" src="<TMPL_VAR NAME="STATIC_PREFIX">common/js/totpregistration.js"></script>
2018-04-01 22:27:50 +02:00
<!-- //endif -->
<TMPL_INCLUDE NAME="footer.tpl">