adds id to XML textbox, now updates

This commit is contained in:
Godfrey M
2025-06-16 16:01:11 -07:00
parent 7be9463be6
commit ec059717f6
2 changed files with 3 additions and 2 deletions

View File

@@ -923,7 +923,7 @@ class SettingsController extends Controller
* @since v5.0.0
*/
public function postSamlSettings(SettingsSamlRequest $request) : RedirectResponse
{
{
if (is_null($setting = Setting::getSettings())) {
return redirect()->to('admin')->with('error', trans('admin/settings/message.update.error'));
}

View File

@@ -113,6 +113,7 @@
<div class="col-md-9">
<x-input.textarea
name="saml_idp_metadata"
id="saml_idp_metadata"
:value="old('saml_idp_metadata', $setting->saml_idp_metadata)"
placeholder="https://example.com/idp/metadata"
wrap="off"
@@ -218,7 +219,7 @@
var fr = new FileReader();
fr.onload = function(e) {
$('#saml_idp_metadata').text(e.target.result);
$('#saml_idp_metadata').val(e.target.result);
}
fr.readAsText(this.files[0]);