update: fix register email code type

This commit is contained in:
v2board 2023-04-30 13:05:05 +08:00
parent 6bf60eb4ec
commit 8b3ea1f8ea

View File

@ -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'));
}
}