Skip to content

Commit

Permalink
fix: login issue icret#146
Browse files Browse the repository at this point in the history
  • Loading branch information
flashlab committed Oct 20, 2023
1 parent a1e8059 commit b89eb05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/*
* 登录页面
*/
ob_start();
require_once __DIR__ . '/../app/function.php';
require_once APP_ROOT . '/app/header.php';
require_once APP_ROOT . '/config/config.guest.php';
Expand Down Expand Up @@ -124,11 +125,11 @@
<img src="<?php echo $config['login_bg']; ?>" alt="简单图床登陆界面背景图" />
</div>
<div class="formBx">
<form class="form-horizontal" action="/admin/index.php" method="post" onsubmit="return md5_post()">
<form class="form-horizontal" action="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="password" id="password" class="form-control" value="" 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 b89eb05

Please sign in to comment.