2021-12-17 10:41:51 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2023-02-20 17:08:32 +00:00
|
|
|
<head>
|
2021-12-17 10:41:51 +00:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<title>Welcome - {{ SITE_NAME }}</title>
|
|
|
|
<link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}">
|
|
|
|
<!-- Tell the browser to be responsive to screen width -->
|
|
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
|
|
{% assets "css_login" -%}
|
2023-02-20 17:08:32 +00:00
|
|
|
<link rel="stylesheet" href="{{ ASSET_URL }}">
|
2021-12-17 10:41:51 +00:00
|
|
|
{%- endassets %}
|
|
|
|
{% if SETTING.get('custom_css') %}
|
2023-02-20 17:08:32 +00:00
|
|
|
<link rel="stylesheet" href="/static/custom/{{ SETTING.get('custom_css') }}">
|
2021-12-17 10:41:51 +00:00
|
|
|
{% endif %}
|
2023-02-20 17:08:32 +00:00
|
|
|
</head>
|
|
|
|
<body class="hold-transition register-page">
|
|
|
|
<div class="register-box">
|
|
|
|
<div class="register-logo">
|
2021-12-17 10:41:51 +00:00
|
|
|
<a><b>PowerDNS</b>-Admin</a>
|
2023-02-20 17:08:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="register-box-body">
|
2021-12-17 10:41:51 +00:00
|
|
|
{% if error %}
|
2023-02-20 17:08:32 +00:00
|
|
|
<div class="alert alert-danger alert-dismissible">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
|
|
{{ error }}
|
|
|
|
</div>
|
2021-12-17 10:41:51 +00:00
|
|
|
{% endif %}
|
2023-02-20 17:08:32 +00:00
|
|
|
Welcome, {{ user.firstname }}! <br/>
|
|
|
|
You will need a Token on login. <br/>
|
2021-12-17 10:41:51 +00:00
|
|
|
Your QR code is:
|
|
|
|
<div id="token_information">
|
2023-02-20 17:08:32 +00:00
|
|
|
{% if qrcode_image == None %}
|
|
|
|
<p><img id="qrcode" src="{{ url_for('user.qrcode') }}"></p>
|
|
|
|
{% else %}
|
|
|
|
<p><img id="qrcode" src="data:image/svg+xml;utf8;base64, {{ qrcode_image }}"></p>
|
|
|
|
{% endif %}
|
|
|
|
<p>
|
|
|
|
Your secret key is: <br/>
|
2021-12-17 10:41:51 +00:00
|
|
|
<form>
|
2023-02-20 17:08:32 +00:00
|
|
|
<input type=text id="otp_secret" value={{ user.otp_secret }} readonly>
|
|
|
|
<button type=button style="position:relative; right:28px" onclick="copy_otp_secret_to_clipboard()"><i
|
|
|
|
class="fa fa-clipboard"></i></button>
|
|
|
|
<br/><font color="red" id="copy_tooltip" style="visibility:collapse">Copied.</font>
|
2021-12-17 10:41:51 +00:00
|
|
|
</form>
|
2023-02-20 17:08:32 +00:00
|
|
|
</p>
|
|
|
|
You can use Google Authenticator (<a target="_blank"
|
|
|
|
href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2">Android</a>
|
|
|
|
- <a target="_blank"
|
|
|
|
href="https://apps.apple.com/us/app/google-authenticator/id388497605">iOS</a>)
|
|
|
|
<br/>
|
|
|
|
or FreeOTP (<a target="_blank"
|
|
|
|
href="https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp&hl=en">Android</a>
|
|
|
|
- <a target="_blank"
|
|
|
|
href="https://itunes.apple.com/en/app/freeotp-authenticator/id872559395?mt=8">iOS</a>)
|
|
|
|
on your smartphone <br/> to scan the QR code or type the secret key.
|
|
|
|
<br/> <br/>
|
|
|
|
<font color="red"><strong><i>Make sure only you can see this QR Code <br/>
|
|
|
|
and secret key, and nobody can capture them.</i></strong></font>
|
2021-12-17 10:41:51 +00:00
|
|
|
</div>
|
|
|
|
</br>
|
|
|
|
Please input your OTP token to continue, to ensure the seed has been scanned correctly.
|
|
|
|
<form action="" method="post" data-toggle="validator">
|
2023-02-20 17:08:32 +00:00
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control" placeholder="OTP Token" name="otptoken"
|
|
|
|
data-error="Please input your OTP token" required>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-4">
|
|
|
|
<button type="submit" class="btn btn-primary btn-block">Continue</button>
|
|
|
|
</div>
|
2021-12-17 10:41:51 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2023-02-20 17:08:32 +00:00
|
|
|
<!-- /.register-box-body -->
|
|
|
|
<div class="text-center">
|
|
|
|
<p>Powered by <a href="https://powerdnsadmin.org" target="_blank">PowerDNS-Admin</a></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.register-box -->
|
|
|
|
</body>
|
|
|
|
{% assets "js_login" -%}
|
|
|
|
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
|
|
|
|
{%- endassets %}
|
|
|
|
{% assets "js_validation" -%}
|
|
|
|
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
|
|
|
|
{%- endassets %}
|
2021-12-17 10:41:51 +00:00
|
|
|
</html>
|