More OTP updates/fixes

* Ensure email address at save
* Fix QR display issues for non-Google Auth
* More cleanup/etc.
This commit is contained in:
Bryan Ashby
2019-06-13 22:54:56 -06:00
parent 7481421898
commit 2b154800c0
4 changed files with 90 additions and 17 deletions

View File

@@ -11,10 +11,12 @@
Your OTP secret:<br>
<b>%SECRET%</b>
</p>
<p>
QR Code:<br>
<img src="%QR_IMG_DATA%"/>
</p>
<script>
if('googleAuth' == '%OTP_TYPE%') {
document.write('QR Code:<br>');
document.write('<img src="%QR_IMG_DATA%"/>');
}
</script>
<form action="%POST_URL%" method="post">
<legend>Confirm One-Time-Password to continue:</legend>
<input type="text" placeholder="One Time Password" id="otp" name="otp" required>