From 8b3ea1f8ea3eb4482bde2a28d1f1010a0c1ceeeb Mon Sep 17 00:00:00 2001 From: v2board Date: Sun, 30 Apr 2023 13:05:05 +0800 Subject: [PATCH] update: fix register email code type --- app/Http/Controllers/Passport/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Passport/AuthController.php b/app/Http/Controllers/Passport/AuthController.php index 2ba29e66..1b47f1c1 100644 --- a/app/Http/Controllers/Passport/AuthController.php +++ b/app/Http/Controllers/Passport/AuthController.php @@ -116,7 +116,7 @@ class AuthController extends Controller if (empty($request->input('email_code'))) { abort(500, __('Email verification code cannot be empty')); } - if (Cache::get(CacheKey::get('EMAIL_VERIFY_CODE', $request->input('email'))) !== $request->input('email_code')) { + if ((string)Cache::get(CacheKey::get('EMAIL_VERIFY_CODE', $request->input('email'))) !== (string)$request->input('email_code')) { abort(500, __('Incorrect email verification code')); } }