Browse Source

Get the login destination from the settings

FusionPBX 4 months ago
parent
commit
37420e9354
1 changed files with 4 additions and 1 deletions
  1. 4 1
      login.php

+ 4 - 1
login.php

@@ -29,7 +29,10 @@
 //additional includes
 	require_once "resources/check_auth.php";
 
+//get the settings
+	$settings = new settings;
+
 //redirect to the dashboard
-	header("Location: ".PROJECT_PATH."/core/dashboard/");
+	header("Location: ".$settings->get('login', 'destination', PROJECT_PATH.'/core/dashboard/'));
 
 ?>