2023-11-10 13:12:15 +01:00
|
|
|
<!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>
|
|
|
|
|
2023-11-16 05:35:57 +01:00
|
|
|
% if data['secureAuth'] == True:
|
|
|
|
|
|
|
|
<form name="editEmailForm" method="post" action="/user">
|
2023-11-10 13:12:15 +01:00
|
|
|
|
2023-11-16 05:35:57 +01:00
|
|
|
<label for="2fa">2FA</label>
|
|
|
|
<input id="2fa" name="2fa" type="text" value="" required>
|
2023-11-10 13:12:15 +01:00
|
|
|
|
2023-11-16 05:35:57 +01:00
|
|
|
<div class="form-buttons">
|
|
|
|
<a href="/user"><button class="green" type="button">{{ str['back'] }}</button></a>
|
|
|
|
<button class="green" type="submit">Disable</button>
|
|
|
|
</div>
|
2023-11-10 13:12:15 +01:00
|
|
|
|
2023-11-16 05:35:57 +01:00
|
|
|
</form>
|
|
|
|
|
|
|
|
% else:
|
|
|
|
|
|
|
|
<form name="editEmailForm" method="post" action="/user">
|
|
|
|
|
|
|
|
<label for="2fa">2FA</label>
|
|
|
|
<input id="2fa" name="2fa" type="text" value="" required>
|
|
|
|
|
|
|
|
<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
|
2023-11-10 13:12:15 +01:00
|
|
|
|
|
|
|
%for type, text, animation in get('alerts', []):
|
|
|
|
<div class="alerts {{ animation }}">
|
|
|
|
<div class="alert {{ type }}">{{ text }}</div>
|
|
|
|
</div>
|
|
|
|
%end
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|