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