mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Enforce a redirection on the login page if the account is logued in
Use the APP_URL variable to define the base url Bump the package number
This commit is contained in:
parent
0b8c4061fc
commit
98ddf1f065
3 changed files with 8 additions and 2 deletions
|
|
@ -38,6 +38,10 @@ class AuthenticateController extends Controller
|
|||
|
||||
public function login(Request $request)
|
||||
{
|
||||
if (auth()->user()) {
|
||||
return redirect()->route('account.panel');
|
||||
}
|
||||
|
||||
return view('account.login');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ class AppServiceProvider extends ServiceProvider
|
|||
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
// Add following lines to force laravel to use APP_URL as root url for the app.
|
||||
$strBaseURL = $this->app['url'];
|
||||
$strBaseURL->forceRootUrl(config('app.url'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#%define _datadir %{_datarootdir}
|
||||
#%define _docdir %{_datadir}/doc
|
||||
|
||||
%define build_number 91
|
||||
%define build_number 92
|
||||
%define var_dir /var/opt/belledonne-communications
|
||||
%define opt_dir /opt/belledonne-communications/share/flexisip-account-manager
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue