ui: don't remove dashes when auto generating slug

This commit is contained in:
Jens Langhammer 2020-02-20 17:13:50 +01:00
parent 3c04afa31f
commit 14e0a17dbc
2 changed files with 2 additions and 5 deletions

View File

@ -1,9 +1,8 @@
function convertToSlug(Text) {
return Text
.toLowerCase()
.replace(/[^\w ]+/g, '')
.replace(/ +/g, '-')
;
.replace(/[^\w ]+/g, '-')
.replace(/ +/g, '-');
}

View File

@ -15,7 +15,6 @@ def get_authnrequest_xml(parameters, signed=False):
params["AUTHN_REQUEST_SIGNATURE"] = ""
unsigned = render_to_string("saml/sp/xml/authn_request.xml", params)
LOGGER.debug("AuthN Request", unsigned=unsigned)
if not signed:
return unsigned
@ -24,5 +23,4 @@ def get_authnrequest_xml(parameters, signed=False):
params["AUTHN_REQUEST_SIGNATURE"] = signature_xml
signed = render_to_string("saml/sp/xml/authn_request.xml", params)
LOGGER.debug("AuthN Request", signed=signed)
return signed