update: forget verify

This commit is contained in:
v2board 2023-04-08 21:52:48 +08:00
parent 3be96ff99c
commit a7275e005b
2 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ class HysteriaController extends Controller
'host' => 'required',
'port' => 'required',
'server_port' => 'required',
'tls' => 'required',
'tags' => 'nullable|array',
'rate' => 'required|numeric',
'up_mbps' => 'required|numeric|min:1',

View File

@ -286,7 +286,7 @@ class AuthController extends Controller
public function forget(AuthForget $request)
{
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'));
}
$user = User::where('email', $request->input('email'))->first();