forked from laysense/laysense.cn
Fix CMS login and restore PAGEPAN feature icons
This commit is contained in:
@@ -13,6 +13,7 @@ $e = View::escape(...);
|
||||
<link rel="icon" href="/assets/favicon.png" type="image/png">
|
||||
<link rel="stylesheet" href="/assets/site.css">
|
||||
<link rel="stylesheet" href="/assets/admin.css">
|
||||
<script src="/assets/jquery-4.0.0.min.js" defer></script>
|
||||
<script src="/assets/admin.js" defer></script>
|
||||
</head>
|
||||
<body class="admin-body">
|
||||
@@ -24,6 +25,7 @@ $e = View::escape(...);
|
||||
<nav aria-label="后台导航">
|
||||
<a href="/admin">页面</a>
|
||||
<a href="/admin/articles">文章</a>
|
||||
<a href="/admin/password">修改密码</a>
|
||||
<a href="/">访问网站</a>
|
||||
<form method="post" action="/admin/logout">
|
||||
<input type="hidden" name="csrf" value="<?= $e($token) ?>">
|
||||
|
||||
@@ -13,4 +13,5 @@ $e = View::escape(...);
|
||||
<label>密码<input name="password" type="password" autocomplete="current-password" required></label>
|
||||
<button class="button button-primary" type="submit">登录</button>
|
||||
</form>
|
||||
<p class="field-note">忘记密码时,可请服务器管理员通过命令行重设。</p>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
use App\Content\View;
|
||||
|
||||
$e = View::escape(...);
|
||||
?>
|
||||
<header class="admin-heading"><h1><?= $e($title) ?></h1></header>
|
||||
<?= View::fragment('admin-feedback', compact('error', 'saved')) ?>
|
||||
<form class="admin-form admin-panel password-form" method="post" action="/admin/password">
|
||||
<input type="hidden" name="csrf" value="<?= $e($token) ?>">
|
||||
<label>当前密码<input name="current_password" type="password" autocomplete="current-password" required></label>
|
||||
<label>新密码<input name="new_password" type="password" autocomplete="new-password" minlength="8" required><small>至少 8 个字符,最多 72 字节。</small></label>
|
||||
<label>再次输入新密码<input name="confirm_password" type="password" autocomplete="new-password" minlength="8" required></label>
|
||||
<div class="form-submit"><button class="button button-primary" type="submit">修改密码</button></div>
|
||||
</form>
|
||||
@@ -42,6 +42,7 @@ $nav = [
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<link rel="icon" href="/assets/favicon.png" type="image/png">
|
||||
<link rel="stylesheet" href="/assets/site.css">
|
||||
<script src="/assets/jquery-4.0.0.min.js" defer></script>
|
||||
<script src="/assets/site.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user