This commit is contained in:
parent
b2f4619186
commit
589403e8bb
|
@ -50,6 +50,7 @@ function generate(ke) {
|
||||||
var src = 'https://chart.googleapis.com/chart?chs=166x166&chld=L|0&cht=qr&chl=' + encodeURIComponent(otpauth);
|
var src = 'https://chart.googleapis.com/chart?chs=166x166&chld=L|0&cht=qr&chl=' + encodeURIComponent(otpauth);
|
||||||
|
|
||||||
$('.js-otpauth').innerHTML = otpauth; // only safe to inject because I created it
|
$('.js-otpauth').innerHTML = otpauth; // only safe to inject because I created it
|
||||||
|
$('.js-otpauth').href = otpauth;
|
||||||
$('img.js-qrcode').src = src;
|
$('img.js-qrcode').src = src;
|
||||||
$('.js-otp-iframe').src = 'demo/phone.html?otpuri=' + encodeURIComponent(otpauth);
|
$('.js-otp-iframe').src = 'demo/phone.html?otpuri=' + encodeURIComponent(otpauth);
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">URI:</label>
|
<label class="col-sm-3 control-label">URI:</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<p class="js-otpauth">otpauth://totp/company:user?secret=xxxx&issuer=company</p>
|
<a class="js-otpauth">otpauth://totp/company:user?secret=xxxx&issuer=company</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue