Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
提升登录体验,避免用户等待看到页面刷新
  • Loading branch information
zhangwenwen authored Sep 22, 2023
1 parent 12f209c commit ecc0834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
icon: "times" // 定义消息图标
}).show();
</script>';
header("refresh:2;");
//header("refresh:2;");
}

// 登录日志
Expand Down Expand Up @@ -127,8 +127,8 @@
<form class="form-horizontal" action="/admin/index.php" method="post" onsubmit="return md5_post()">
<h2>登录</h2>
<label for="account" class="col-sm-2"></label>
<input type="text" name="user" id="account" class="form-control" value="" placeholder="输入登录账号" autocomplete="off" required="required">
<input type="password" name="password" id="password" class="form-control" value="" placeholder="输入登录密码" autocomplete="off" required="required">
<input type="text" name="user" id="account" class="form-control" value="<?echo $_POST['user']?>" placeholder="输入登录账号" autocomplete="off" required="required">
<input type="password" name="password" id="password" class="form-control" value="<?echo $_POST['password']?>" placeholder="输入登录密码" autocomplete="off" required="required">
<input type="hidden" name="password" id="md5_password">
<?php if ($config['captcha']) : ?>
<input class="form-control" type="text" name="code" value="" placeholder="请输入验证码" autocomplete="off" required="required" />
Expand Down

0 comments on commit ecc0834

Please sign in to comment.