mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-22 20:11:15 +08:00
Applied styleci changes
This commit is contained in:
parent
2740603d99
commit
8f12c8bc99
|
@ -26,12 +26,12 @@ class CheckEmailConfirmed
|
|||
$this->confirmationService = $confirmationService;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
|
@ -40,6 +40,7 @@ class CheckEmailConfirmed
|
|||
$user = auth()->user();
|
||||
if (auth()->check() && !$user->email_confirmed && $this->confirmationService->confirmationRequired()) {
|
||||
auth()->logout();
|
||||
|
||||
return redirect()->to('/');
|
||||
}
|
||||
|
||||
|
|
|
@ -470,7 +470,7 @@ class AuthTest extends BrowserKitTest
|
|||
$this->assertTrue(auth()->check());
|
||||
|
||||
$this->get('/books');
|
||||
$this->assertRedirectedTo("/");
|
||||
$this->assertRedirectedTo('/');
|
||||
|
||||
$this->assertFalse(auth()->check());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user