Merge branch 'develop' into trunk
This commit is contained in:
commit
e03b46688a
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ class VerificationController extends Controller
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth:frontend');
|
||||
$this->middleware('auth:frontend')->except('verify');
|
||||
$this->middleware('signed')->only('verify');
|
||||
$this->middleware('throttle:6,1')->only('verify', 'resend');
|
||||
}
|
||||
|
|
@ -58,7 +58,7 @@ class VerificationController extends Controller
|
|||
public function verify(Request $request): JsonResponse|RedirectResponse
|
||||
{
|
||||
/** @var \App\Models\Customer */
|
||||
$user = $request->user('frontend');
|
||||
$user = Customer::findOrFail($request->route('id'));
|
||||
|
||||
if (!hash_equals((string)$request->route('id'), (string)$user->getKey())) {
|
||||
throw new AuthorizationException();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue