这个提交包含在:
WaitSpring 2024-04-16 15:44:05 +08:00
父节点 99571713b8
当前提交 1d1201cf9c
共有 1 个文件被更改,包括 2 次插入17 次删除

查看文件

@ -1,6 +1,6 @@
<?php
error_reporting(0);
ini_set('display_errors', 0);
error_reporting(1);
ini_set('display_errors', 1);
require_once __DIR__ . \DIRECTORY_SEPARATOR . 'loadRequires.php';
require_once __DIR__ . \DIRECTORY_SEPARATOR . 'template.php';
@ -32,21 +32,6 @@ $qwVerifyStage = $_SESSION['qwVerifyStage'];
$oldVerified = $_SESSION['oldVerified'] ?? false;
$newVerified = $_SESSION['newVerified'] ?? false;
if (!isset($_SESSION['qwVerifyStage'])) {
echo "请求方式错误,请重新完成验证。";
exit(1);
}
if ($qwVerifyStage === 'reg' && $oldVerified !== true) {
alertAndBack('验证码错误。');
exit(1);
}
if ($qwVerifyStage === 'update' && $newVerified !== true) {
alertAndBack('验证码错误。');
exit(1);
}
if (($qwVerifyStage === 'reg' && $oldVerified === true) || ($qwVerifyStage === 'update' && $newVerified === true)) {
session_destroy();
// 连接数据库