67 lines
2.3 KiB
Smarty
67 lines
2.3 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>{{ str['2fa-title'] }}</h1>
|
|
|
|
% if data['secureAuth'] == True:
|
|
<div class="info">
|
|
Aurrerantzean ondorengo kodea erabili beharko duzu saioa hasteko. Mugikorrerako OTP edo 2FA aplikazioa baten
|
|
bidez QR kodea irakurtzean jasoko duzun gakoa baliatuz horretarako.
|
|
</div>
|
|
|
|
<div class="qr-code">
|
|
<img src="{{'static/tmp/'+data['authToken']+'.png'}}" />
|
|
</div>
|
|
<form name="disable2faForm" method="post" action="/disable_2fa">
|
|
|
|
<label for="token">{{ str['token'] }}</label>
|
|
<input id="token" name="token" 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">{{ str['disable'] }}</button>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
% else:
|
|
<div class="info">
|
|
Bi urratseko autentifikazioa segurtasun gehigarri bat da. Hau gaituz saio hasieran erabiltzaile eta pasahitzaz
|
|
gain QR bidez jasoko duzun gako bat eskatuko zaizu.
|
|
</div>
|
|
<form name="enable2faForm" method="post" action="/enable_2fa">
|
|
|
|
<!--<input id="token" name="token" 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">{{ str['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>
|