A free open source IT asset/license management system
Develop to master (#9195)
snipef5dda06c55c2
diff --git a/app/Http/Controllers/Auth/SamlController.php b/app/Http/Controllers/Auth/SamlController.phpindex 48c8d05ab8..5a2075daed 100644--- a/app/Http/Controllers/Auth/SamlController.php+++ b/app/Http/Controllers/Auth/SamlController.php@@ -128,7 +128,8 @@ class SamlController extends Controllerpublic function sls(Request $request){$auth = $this->saml->getAuth();- $sloUrl = $auth->processSLO(true, null, null, null, true);+ $retrieveParametersFromServer = $this->saml->getSetting('retrieveParametersFromServer', false);+ $sloUrl = $auth->processSLO(true, null, $retrieveParametersFromServer, null, true);$errors = $auth->getErrors();if (!empty($errors)) {diff --git a/app/Services/Saml.php b/app/Services/Saml.phpindex bb6c24cffb..fa2eb13105 100644--- a/app/Services/Saml.php+++ b/app/Services/Saml.php@@ -324,6 +324,20 @@ class Samlreturn $this->_auth;}+ /**+ * Get a setting.+ *+ * @author Johnson Yi <[email protected]>+ *+ * @param string|array|int $key+ * @param mixed $default+ *+ * @return void+ */+ public function getSetting($key, $default = null) {+ return data_get($this->_settings, $key, $default);+ }+/*** Gets the SP metadata. The XML representation.*diff --git a/resources/views/notifications/Test.blade.php b/resources/views/notifications/Test.blade.phpindex e4e479846f..0f58a54926 100644--- a/resources/views/notifications/Test.blade.php+++ b/resources/views/notifications/Test.blade.php@@ -1,7 +1,11 @@+@if ($setupCompleted = \App\Models\Setting::setupCompleted())@component('mail::message')+@endif{{ trans('mail.test_mail_text') }}Thanks,Snipe-IT+@if ($setupCompleted)@endcomponent+@endifdiff --git a/resources/views/vendor/mail/markdown/message.blade.php b/resources/views/vendor/mail/markdown/message.blade.phpindex 862611099e..0fcfba938c 100644--- a/resources/views/vendor/mail/markdown/message.blade.php+++ b/resources/views/vendor/mail/markdown/message.blade.php@@ -45,7 +45,7 @@ Snipe-IT@endif@if ($snipeSettings->privacy_policy_link!='')-<a href="{{ $snipeSettings->privacy_policy_link }}">{{ trans('admin/settings/general.privacy_policy') }}</a>ldfkgjg+<a href="{{ $snipeSettings->privacy_policy_link }}">{{ trans('admin/settings/general.privacy_policy') }}</a>@endif@endcomponent