瀏覽代碼

Working workaround

master
Immanuel Onyeka 3 年之前
父節點
當前提交
b84745e2e2
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. +5
    -6
      routes/web.php

+ 5
- 6
routes/web.php 查看文件

@@ -43,15 +43,14 @@ Route::get('/verify-email', function() {
}
})->middleware('auth')->name('verification.notice');

Route::get('/verify/{id}/{hash}', function (EmailVerificationRequest $request) {
$user = User::find($id);

if ($user->email_verified_at) {
Route::get('/verify/{id}/{hash}', function (EmailVerificationRequest $request, $id) {
if (Auth::user()->email_verified_at) {
abort(404);
}
}

Auth::login($user);
Auth::loginUsingId($id);
$request->fulfill();

return redirect('/panel');
})->middleware(['signed'])->name('verification.verify');



Loading…
取消
儲存