From e6b6d1022e4e6337963420cf2e1f6e83f79f2c9d Mon Sep 17 00:00:00 2001 From: v2board Date: Tue, 25 Jul 2023 19:23:40 +0800 Subject: [PATCH] update: rollback --- app/Http/Controllers/V1/Passport/CommController.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/Http/Controllers/V1/Passport/CommController.php b/app/Http/Controllers/V1/Passport/CommController.php index 0becc75a..14019db7 100644 --- a/app/Http/Controllers/V1/Passport/CommController.php +++ b/app/Http/Controllers/V1/Passport/CommController.php @@ -37,11 +37,6 @@ class CommController extends Controller if (Cache::get(CacheKey::get('LAST_SEND_EMAIL_VERIFY_TIMESTAMP', $email))) { abort(500, __('Email verification code has been sent, please request again later')); } - if (!User::where('email', $email)->first()) { - return [ - 'data' => true - ]; - } $code = rand(100000, 999999); $subject = config('v2board.app_name', 'V2Board') . __('Email verification code');