mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-01-08 11:58:03 +08:00
39 lines
1.8 KiB
PHP
39 lines
1.8 KiB
PHP
<?php
|
|
include_once __DIR__ . "/header.php";
|
|
|
|
$value = '';
|
|
if (isset($_POST['md5'])) {
|
|
$value = hash('sha256', $_POST['md5']);
|
|
}
|
|
|
|
?>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<p class="text-primary">忘记账号可以打开<code>/config/config.php</code>文件找到<code data-toggle="tooltip" title="'user'=><strong>admin</strong>'">user</code>对应的键值->填入</p>
|
|
<p class="text-success">忘记密码请将密码转换成SHA256(<a href="<?php echo $config['domain'] . '/app/reset_password.php'; ?>" target="_blank" class="text-purple">转换网址</a>)->打开<code>/config/config.php</code>文件->找到<code data-toggle="tooltip" title="'password'=>'<strong>e6e0612609</strong>'">password</code>对应的键值->填入</p>
|
|
<h4 class="text-danger">更改后会立即生效并重新登录,请务必牢记账号和密码! </h4>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" class="form-horizontal">
|
|
<div class="form-group">
|
|
<label for="md5" class="col-sm-2">要加密的密码</label>
|
|
<div class="col-md-6 col-sm-10">
|
|
<input type="text" class="form-control" id="md5" name="md5" value="<?php echo $value; ?>" required placeholder="eg: EasyImage2.0" onkeyup="this.value=this.value.trim()">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-primary">获取新的密码</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
// 更改网页标题
|
|
document.title = "获取新的密码 - <?php echo $config['title']; ?>"
|
|
</script>
|
|
<?php
|
|
|
|
include_once __DIR__ . "/footer.php";
|