ui: don't remove dashes when auto generating slug
This commit is contained in:
parent
3c04afa31f
commit
14e0a17dbc
|
@ -1,9 +1,8 @@
|
||||||
function convertToSlug(Text) {
|
function convertToSlug(Text) {
|
||||||
return Text
|
return Text
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.replace(/[^\w ]+/g, '')
|
.replace(/[^\w ]+/g, '-')
|
||||||
.replace(/ +/g, '-')
|
.replace(/ +/g, '-');
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ def get_authnrequest_xml(parameters, signed=False):
|
||||||
params["AUTHN_REQUEST_SIGNATURE"] = ""
|
params["AUTHN_REQUEST_SIGNATURE"] = ""
|
||||||
|
|
||||||
unsigned = render_to_string("saml/sp/xml/authn_request.xml", params)
|
unsigned = render_to_string("saml/sp/xml/authn_request.xml", params)
|
||||||
LOGGER.debug("AuthN Request", unsigned=unsigned)
|
|
||||||
if not signed:
|
if not signed:
|
||||||
return unsigned
|
return unsigned
|
||||||
|
|
||||||
|
@ -24,5 +23,4 @@ def get_authnrequest_xml(parameters, signed=False):
|
||||||
params["AUTHN_REQUEST_SIGNATURE"] = signature_xml
|
params["AUTHN_REQUEST_SIGNATURE"] = signature_xml
|
||||||
signed = render_to_string("saml/sp/xml/authn_request.xml", params)
|
signed = render_to_string("saml/sp/xml/authn_request.xml", params)
|
||||||
|
|
||||||
LOGGER.debug("AuthN Request", signed=signed)
|
|
||||||
return signed
|
return signed
|
||||||
|
|
Reference in New Issue