Browse Source

Get the login destination from the settings

FusionPBX 4 tháng trước cách đây
mục cha
commit
37420e9354
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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/'));
 
 ?>