perf: 修改验证邮件有效期为10分钟方便测试(验证完后改为24小时)

This commit is contained in:
韦荣超
2022-03-09 11:51:42 +08:00
parent 0aa18ded72
commit 923549bb5e
2 changed files with 2 additions and 2 deletions

View File

@@ -607,7 +607,7 @@ class UsersController extends AbstractController
$oldTime = strtotime($res->created_at);
$time = time();
//24个小时失效
if (abs($time - $oldTime) > 86400) {
if (abs($time - $oldTime) > 600) {
return Base::retError("链接已失效,请重新登录/注册");
}
UserEmailVerification::where('code', $data['code'])