no message
This commit is contained in:
parent
2afa8cc4c2
commit
3c4feb204f
@ -107,6 +107,8 @@ final class PasswordController extends BaseController
|
||||
$token = $this->antiXss->xss_clean($args['token']);
|
||||
$password = $request->getParam('password');
|
||||
$confirm_password = $request->getParam('confirm_password');
|
||||
|
||||
var_dump($token);
|
||||
|
||||
if ($password !== $confirm_password) {
|
||||
return ResponseHelper::error($response, '两次输入不符合');
|
||||
@ -118,7 +120,8 @@ final class PasswordController extends BaseController
|
||||
|
||||
$redis = (new Cache())->initRedis();
|
||||
$email = $redis->get('password_reset:' . $token);
|
||||
|
||||
var_dump($email);
|
||||
exit;
|
||||
if (! $email) {
|
||||
return ResponseHelper::error($response, '链接无效');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user