Commit ec25a003 authored by o@immerda.ch's avatar o@immerda.ch
Browse files

fix params passing

parent a1835ea6
......@@ -3,10 +3,8 @@ class SamlController < SessionsController
def init
request = OneLogin::RubySaml::Authrequest.new
opts = {}
if params['unlock'] =~ /^[[:alnum:]]+$/
redirect_to(
"#{request.create(saml_settings)}&unlock=#{params['unlock']}")
redirect_to(request.create(saml_settings, unlock: params['unlock']))
else
redirect_to(request.create(saml_settings))
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment