perf: 修改验证邮件有效期改回24小时
This commit is contained in:
@@ -42,7 +42,7 @@ class UserEmailVerification extends AbstractModel
|
||||
*/
|
||||
public static function userEmailSend(User $user)
|
||||
{
|
||||
$res = self::where('userid', $user->userid)->where('created_at', '>', Carbon::now()->subMinutes(10))->first();
|
||||
$res = self::where('userid', $user->userid)->where('created_at', '>', Carbon::now()->subMinutes(1440))->first();
|
||||
if ($res) return;
|
||||
//删除
|
||||
self::where('userid', $user->userid)->delete();
|
||||
|
||||
Reference in New Issue
Block a user