mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: fix register email code type
This commit is contained in:
parent
6bf60eb4ec
commit
8b3ea1f8ea
@ -116,7 +116,7 @@ class AuthController extends Controller
|
|||||||
if (empty($request->input('email_code'))) {
|
if (empty($request->input('email_code'))) {
|
||||||
abort(500, __('Email verification code cannot be empty'));
|
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'));
|
abort(500, __('Incorrect email verification code'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user