forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset2fa.html
More file actions
76 lines (76 loc) · 4.49 KB
/
reset2fa.html
File metadata and controls
76 lines (76 loc) · 4.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<center>
<table class="login">
<tr>
<td>
<table>
<tr>
<td style="padding: 22px 30px 0 42px; height: 280px; width: 170px;">
<a href="/"><img border=0 src="/images/logo.svg" title="<?=_('Hestia Control Panel');?>" style="margin-top: 70px;" /></a>
</td>
<td style="padding: 40px 60px 0 0;" class="animated fadeIn">
<?php if($success){?>
<table class="login-box">
<tr>
<td style="padding: 12px 0 0 2px;">
<?php print _('2FA Reset successfully'); ?>
</td>
</tr>
<tr>
<td style="padding: 20px 0 12px 0;">
<input type="button" class="button" value="<?php print _('Log in');?>" onclick="location.href='/login/'">
</td>
</tr>
</table>
<?php }else{ ?>
<form method="post" action="/reset2fa/">
<table class="login-box">
<tr>
<td style="padding: 12px 0 0 2px;" class="login-welcome">
<?php print _('Reset 2FA');?>
</td>
</tr>
<tr>
<td style="padding: 12px 0 0 2px;">
<?php print _('Username');?>
</td>
</tr>
<tr>
<td>
<input tabindex="1" type="text" size="20px" style="width:240px" name="user" class="vst-input">
</td>
</tr>
<tr>
<td style="padding: 12px 0 0 2px;">
<?php print _('2FA Reset Code');?>
</td>
</tr>
<tr>
<td>
<input tabindex="1" type="text" size="20px" style="width:240px" name="twofa" class="vst-input">
</td>
</tr>
<tr>
<td style="padding: 20px 0 12px 0;">
<input tabindex="2" type="submit" value="<?php print _('Submit');?>" class="button">
<input type="button" class="button cancel" value="<?php print _('Back');?>" onclick="location.href='/login/'">
</td>
</tr>
</table>
</form>
<?php } ?>
</td>
</tr>
<tr>
<td colspan=2>
<div class="login-bottom">
<div style="height:20px"><?php if (isset($ERROR)) echo $ERROR ?></div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</body>
</html>