58 lines
1.7 KiB
Smarty
58 lines
1.7 KiB
Smarty
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
|
|
<title>{{ str['welcome'] }}</title>
|
|
|
|
<link rel="stylesheet" href="{{ url('static', filename='style.css') }}">
|
|
</head>
|
|
|
|
<body>
|
|
<main>
|
|
<h1>2FA</h1>
|
|
|
|
% if data['secureAuth'] == True:
|
|
<div class="qr-code">
|
|
<img src="{{'static/tmp/'+data['authToken']+'.png'}}" />
|
|
</div>
|
|
<form name="disable2faForm" method="post" action="/disable_2fa">
|
|
|
|
<input id="2fa" name="2fa" type="text" value="{{data['authToken']}}" readonly>
|
|
|
|
<div class="form-buttons">
|
|
<a href="/user"><button class="green" type="button">{{ str['back'] }}</button></a>
|
|
<button class="green" type="submit">Disable</button>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
% else:
|
|
|
|
<form name="enable2faForm" method="post" action="/enable_2fa">
|
|
|
|
<input id="2fa" name="2fa" type="text" value="{{data['authToken']}}" readonly>
|
|
|
|
<div class="form-buttons">
|
|
<a href="/user"><button class="green" type="button">{{ str['back'] }}</button></a>
|
|
<button class="green" type="submit">Enable</button>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
%end
|
|
|
|
%for type, text, animation in get('alerts', []):
|
|
<div class="alerts {{ animation }}">
|
|
<div class="alert {{ type }}">{{ text }}</div>
|
|
</div>
|
|
%end
|
|
|
|
</main>
|
|
|
|
</body>
|
|
</html>
|