1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 16:13:20 +01:00
invoiceninja/app/Http/Middleware/Authenticate.php

30 lines
689 B
PHP
Raw Normal View History

2018-10-04 19:10:43 +02:00
<?php
2019-05-11 05:32:07 +02:00
/**
* Invoice Ninja (https://invoiceninja.com).
2019-05-11 05:32:07 +02:00
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
2019-05-11 05:32:07 +02:00
*
* @license https://opensource.org/licenses/AAL
*/
2018-10-04 19:10:43 +02:00
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
2020-10-28 11:10:49 +01:00
use Illuminate\Http\Request;
2018-10-04 19:10:43 +02:00
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
2020-10-28 11:10:49 +01:00
* @param Request $request
2018-10-04 19:10:43 +02:00
* @return string
*/
protected function redirectTo($request)
{
return route('client.login');
2018-10-04 19:10:43 +02:00
}
}