no message

This commit is contained in:
hellcat 2025-10-19 14:46:50 +08:00
parent e5e6b7ace2
commit f1e45a80db
2 changed files with 10 additions and 7 deletions

View File

@ -3,9 +3,9 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
<title>重置密码 — HutaoCloud</title>
<title>重置密码 — 福云</title>
<!-- ico -->
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" type="text/css" href="/theme/cool/assets/css/cool.css">
<link rel="stylesheet" type="text/css" href="/theme/cool/assets/css/auth/page-auth.css">
@ -44,6 +44,8 @@
<div class="card mb-0">
<div class="card-body">
<a href="javascript:void(0);" class="brand-logo">
<img src="/fucai192.png" height="55">
<!--
<svg viewbox="0 0 139 95" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="28">
<defs>
<lineargradient id="linearGradient-1" x1="100%" y1="10.5120544%" x2="50%" y2="89.4879456%">
@ -67,10 +69,11 @@
</g>
</g>
</svg>
<h2 class="brand-text text-primary ml-1">Hutao</h2>
-->
<h2 class="brand-text text-primary ml-1">福云</h2>
</a>
<h4 class="card-title mb-1">Reset Password 🔒</h4>
<h4 class="card-title mb-1">重置密码 🔒</h4>
<p class="card-text mb-2">您的新密码必须与以前使用的密码不同.</p>
<form id="reset_form" class="form-group" action="javascript:void(0);">

View File

@ -109,7 +109,7 @@ final class PasswordController extends BaseController
// $confirm_password = $request->getParam('confirm_password');
$confirm_password = $request->getParam('repasswd');
var_dump($token);
// var_dump($token);
if ($password !== $confirm_password) {
return ResponseHelper::error($response, '两次输入不符合');
@ -121,8 +121,8 @@ final class PasswordController extends BaseController
$redis = (new Cache())->initRedis();
$email = $redis->get('password_reset:' . $token);
var_dump($email);
exit;
// var_dump($email);
// exit;
if (! $email) {
return ResponseHelper::error($response, '链接无效');
}