bsw@51: local user_supplied_identifier = param.get("openid_identifier") bsw@51: bsw@51: if not config.auth_openid_identifier_check_func(user_supplied_identifier) then bsw@51: slot.put_into("error", _"This identifier is not allowed for this instance.") bsw@51: return bsw@51: end bsw@51: bsw@51: local success,errmsg = auth.openid.initiate{ bsw@51: user_supplied_identifier = user_supplied_identifier, bsw@51: https_as_default = config.auth_openid_https_as_default, bsw@51: curl_options = config.auth_openid_curl_options, bsw@51: realm = request.get_absolute_baseurl(), bsw@51: return_to_module = "openid", bsw@51: return_to_view = "verify" bsw@51: } bsw@51: bsw@51: if not success then bsw@51: slot.put_into("error", encode.html(_("Error while resolving openid. Internal message: '#{errmsg}'", { errmsg = errmsg }))) bsw@51: return false bsw@51: end