mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-02 15:34:48 +01:00
further change
This commit is contained in:
parent
122d9ca847
commit
229da5843a
@ -67,12 +67,12 @@ and ensure every administrator account for this control panel does the same.</st
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="otp-label" style="font-weight: normal">3. Optionally, give your device a label so that you can remember what device you set it up on:</label>
|
<label for="totp-setup-label" style="font-weight: normal">3. Optionally, give your device a label so that you can remember what device you set it up on:</label>
|
||||||
<input type="text" id="totp-setup-label" class="form-control" placeholder="my phone" />
|
<input type="text" id="totp-setup-label" class="form-control" placeholder="my phone" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="otp" style="font-weight: normal">4. Use the app to generate your first six-digit code and enter it here:</label>
|
<label for="totp-setup-token" style="font-weight: normal">4. Use the app to generate your first six-digit code and enter it here:</label>
|
||||||
<input type="text" id="totp-setup-token" class="form-control" placeholder="6-digit code" />
|
<input type="text" id="totp-setup-token" class="form-control" placeholder="6-digit code" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -132,6 +132,7 @@ and ensure every administrator account for this control panel does the same.</st
|
|||||||
function render_totp_setup(provisioned_totp) {
|
function render_totp_setup(provisioned_totp) {
|
||||||
var img = document.createElement('img');
|
var img = document.createElement('img');
|
||||||
img.src = "data:image/png;base64," + provisioned_totp.qr_code_base64;
|
img.src = "data:image/png;base64," + provisioned_totp.qr_code_base64;
|
||||||
|
img.alt = "QR code, scan this in your authenticator app"
|
||||||
|
|
||||||
var code = document.createElement('div');
|
var code = document.createElement('div');
|
||||||
code.innerHTML = `Secret: ${provisioned_totp.secret}`;
|
code.innerHTML = `Secret: ${provisioned_totp.secret}`;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user