|
|
@@ -1,69 +1,40 @@
|
|
|
-<div class="u-flex-align-center">
|
|
|
- <table class="login">
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <table>
|
|
|
- <tr>
|
|
|
- <td style="padding: 22px 30px 0 42px; height: 280px; width: 170px;">
|
|
|
- <a href="/" class="u-block"><img src="/images/logo.svg" alt="<?=_('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;">
|
|
|
- <?=_('2FA Reset successfully'); ?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="padding: 20px 0 12px 0;">
|
|
|
- <input type="button" class="button" value="<?=_('Log in');?>" onclick="location.href='/login/'">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <?php } else { ?>
|
|
|
- <form method="post" action="/reset2fa/">
|
|
|
- <input type="hidden" name="token" value="<?=$_SESSION['token'];?>"/>
|
|
|
- <table class="login-box">
|
|
|
- <tr>
|
|
|
- <td style="padding: 12px 0 0 2px;" class="login-welcome">
|
|
|
- <?=_('Reset 2FA');?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="padding: 12px 0 0 2px;">
|
|
|
- <label for="user" class="form-label"><?=_('Username');?></label>
|
|
|
- <input type="text" class="form-control" name="user" id="user" tabindex="1" style="width:260px;">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="padding: 12px 0 0 2px;">
|
|
|
- <label for="twofa" class="form-label"><?=_('2FA Reset Code');?></label>
|
|
|
- <input type="text" class="form-control" name="twofa" id="twofa" tabindex="1" style="width:260px;">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="padding: 20px 0 12px 0;">
|
|
|
- <input tabindex="2" type="submit" value="<?=_('Submit');?>" class="button">
|
|
|
- <input type="button" class="button cancel" value="<?=_('Back');?>" onclick="location.href='/login/?logout'">
|
|
|
- </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>
|
|
|
+<div class="login">
|
|
|
+ <div style="padding-top: 40px; padding-right: 30px;">
|
|
|
+ <a href="/" class="u-block">
|
|
|
+ <img src="/images/logo.svg" alt="<?=_('Hestia Control Panel');?>" width="100" height="120">
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div class="animated fadeIn">
|
|
|
+ <?php if ($success) {?>
|
|
|
+ <h1 class="login-title">
|
|
|
+ <?=_('2FA Reset successfully'); ?>
|
|
|
+ </h1>
|
|
|
+ <?php if (isset($ERROR)) echo $ERROR ?>
|
|
|
+ <div class="u-mt20">
|
|
|
+ <input type="button" class="button" value="<?=_('Log in');?>" onclick="location.href='/login/'">
|
|
|
+ </div>
|
|
|
+ <?php } else { ?>
|
|
|
+ <form method="post" action="/reset2fa/">
|
|
|
+ <input type="hidden" name="token" value="<?=$_SESSION['token'];?>"/>
|
|
|
+ <h1 class="login-title">
|
|
|
+ <?=_('Reset 2FA');?>
|
|
|
+ </div>
|
|
|
+ <?php if (isset($ERROR)) echo $ERROR ?>
|
|
|
+ <div class="u-mb10">
|
|
|
+ <label for="user" class="form-label"><?=_('Username');?></label>
|
|
|
+ <input type="text" class="form-control" name="user" id="user" tabindex="1" style="width:260px;">
|
|
|
+ </div>
|
|
|
+ <div class="u-mb20">
|
|
|
+ <label for="twofa" class="form-label"><?=_('2FA Reset Code');?></label>
|
|
|
+ <input type="text" class="form-control" name="twofa" id="twofa" tabindex="1" style="width:260px;">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <input tabindex="2" type="submit" value="<?=_('Submit');?>" class="button">
|
|
|
+ <input type="button" class="button cancel" value="<?=_('Back');?>" onclick="location.href='/login/?logout'">
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
</body>
|