liquid_feedback_frontend
view app/main/openid/_action/initiate.lua @ 120:e5a221e57dc6
merge
| author | bsw | 
|---|---|
| date | Mon Oct 04 17:51:29 2010 +0200 (2010-10-04) | 
| parents | 0849be391140 | 
| children | 
 line source
     1 local user_supplied_identifier = param.get("openid_identifier")
     3 if not config.auth_openid_identifier_check_func(user_supplied_identifier) then
     4   slot.put_into("error", _"This identifier is not allowed for this instance.")
     5   return
     6 end
     8 local success,errmsg = auth.openid.initiate{
     9   user_supplied_identifier = user_supplied_identifier,
    10   https_as_default         = config.auth_openid_https_as_default,
    11   curl_options             = config.auth_openid_curl_options,
    12   realm                    = request.get_absolute_baseurl(),
    13   return_to_module         = "openid",
    14   return_to_view           = "verify"
    15 }
    17 if not success then
    18   slot.put_into("error", encode.html(_("Error while resolving openid. Internal message: '#{errmsg}'", { errmsg = errmsg })))
    19   return false
    20 end
