no message
This commit is contained in:
parent
e5e6b7ace2
commit
f1e45a80db
@ -3,9 +3,9 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
|
||||||
<title>重置密码 — HutaoCloud</title>
|
<title>重置密码 — 福云</title>
|
||||||
<!-- ico -->
|
<!-- 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/cool.css">
|
||||||
<link rel="stylesheet" type="text/css" href="/theme/cool/assets/css/auth/page-auth.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 mb-0">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<a href="javascript:void(0);" class="brand-logo">
|
<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">
|
<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>
|
<defs>
|
||||||
<lineargradient id="linearGradient-1" x1="100%" y1="10.5120544%" x2="50%" y2="89.4879456%">
|
<lineargradient id="linearGradient-1" x1="100%" y1="10.5120544%" x2="50%" y2="89.4879456%">
|
||||||
@ -67,10 +69,11 @@
|
|||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
<h2 class="brand-text text-primary ml-1">Hutao</h2>
|
-->
|
||||||
|
<h2 class="brand-text text-primary ml-1">福云</h2>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<h4 class="card-title mb-1">Reset Password 🔒</h4>
|
<h4 class="card-title mb-1">重置密码 🔒</h4>
|
||||||
<p class="card-text mb-2">您的新密码必须与以前使用的密码不同.</p>
|
<p class="card-text mb-2">您的新密码必须与以前使用的密码不同.</p>
|
||||||
|
|
||||||
<form id="reset_form" class="form-group" action="javascript:void(0);">
|
<form id="reset_form" class="form-group" action="javascript:void(0);">
|
||||||
|
|||||||
@ -109,7 +109,7 @@ final class PasswordController extends BaseController
|
|||||||
// $confirm_password = $request->getParam('confirm_password');
|
// $confirm_password = $request->getParam('confirm_password');
|
||||||
$confirm_password = $request->getParam('repasswd');
|
$confirm_password = $request->getParam('repasswd');
|
||||||
|
|
||||||
var_dump($token);
|
// var_dump($token);
|
||||||
|
|
||||||
if ($password !== $confirm_password) {
|
if ($password !== $confirm_password) {
|
||||||
return ResponseHelper::error($response, '两次输入不符合');
|
return ResponseHelper::error($response, '两次输入不符合');
|
||||||
@ -121,8 +121,8 @@ final class PasswordController extends BaseController
|
|||||||
|
|
||||||
$redis = (new Cache())->initRedis();
|
$redis = (new Cache())->initRedis();
|
||||||
$email = $redis->get('password_reset:' . $token);
|
$email = $redis->get('password_reset:' . $token);
|
||||||
var_dump($email);
|
// var_dump($email);
|
||||||
exit;
|
// exit;
|
||||||
if (! $email) {
|
if (! $email) {
|
||||||
return ResponseHelper::error($response, '链接无效');
|
return ResponseHelper::error($response, '链接无效');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user