perf: 修改验证邮件有效期改回24小时
This commit is contained in:
@@ -607,7 +607,7 @@ class UsersController extends AbstractController
|
||||
$oldTime = strtotime($res->created_at);
|
||||
$time = time();
|
||||
//24个小时失效
|
||||
if (abs($time - $oldTime) > 600) {
|
||||
if (abs($time - $oldTime) > 86400) {
|
||||
return Base::retError("链接已失效,请重新登录/注册");
|
||||
}
|
||||
UserEmailVerification::where('code', $data['code'])
|
||||
|
||||
Reference in New Issue
Block a user