mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
4076a00dae
* Multi Auth / Multi DB cleanup * Fixes for Multi-DB * Fixes for Multi auth using Multi DB * Remove register routes from application
20 lines
409 B
PHP
20 lines
409 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Illuminate\Auth\Middleware\Authenticate as Middleware;
|
|
|
|
class Authenticate extends Middleware
|
|
{
|
|
/**
|
|
* Get the path the user should be redirected to when they are not authenticated.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return string
|
|
*/
|
|
protected function redirectTo($request)
|
|
{
|
|
return route('login');
|
|
}
|
|
}
|