From 8f2442a99d42da41b18512ccb5c6aca42f93b477 Mon Sep 17 00:00:00 2001 From: Martin <martin.vanes@surf.nl> Date: Fri, 10 Sep 2021 11:18:28 +0200 Subject: [PATCH] Make Error message customizable in logins.json --- config/logins.json | 9 +++++++++ modules/customauth/templates/authenticate.tpl.php | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/config/logins.json b/config/logins.json index d16f033..8de4e45 100644 --- a/config/logins.json +++ b/config/logins.json @@ -589,5 +589,14 @@ ] } } + }, + "Error Scenarios": { + "message": "Error scenario(s) message", + "profiles": { + "error": { + "explanation": "Error Test explanation", + "display": "Error Test display" + } + } } } diff --git a/modules/customauth/templates/authenticate.tpl.php b/modules/customauth/templates/authenticate.tpl.php index dad7cd1..14647c9 100644 --- a/modules/customauth/templates/authenticate.tpl.php +++ b/modules/customauth/templates/authenticate.tpl.php @@ -38,9 +38,6 @@ } } ?> - <option></option> - <option value="Error Scenarios">--- Error Scenarios ---</option> - <option value="error">SAML Error</option> </select> </div> <div id="explanation" style='display: grid'>Woohaa!</div><br style="clear: both" /> @@ -76,9 +73,6 @@ } ?> - explanations['Error Scenarios'] = "These are the Error Scenarios"; - explanations['error'] = "This generates a SAML Error"; - function update() { var html = ""; for (let key in users[user]) { -- GitLab