mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
perf: 【邮箱验证】链接过期的提示文案为:链接已失效,请重新登录/注册
This commit is contained in:
parent
ee08d8d740
commit
0aa18ded72
@ -608,9 +608,7 @@ class UsersController extends AbstractController
|
||||
$time = time();
|
||||
//24个小时失效
|
||||
if (abs($time - $oldTime) > 86400) {
|
||||
$user = User::whereUserid($res->userid)->first();
|
||||
UserEmailVerification::userEmailSend($user);
|
||||
return Base::retError("链接已过期,已重新发送");
|
||||
return Base::retError("链接已失效,请重新登录/注册");
|
||||
}
|
||||
UserEmailVerification::where('code', $data['code'])
|
||||
->update([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user