liquid_feedback_frontend

diff app/main/openid/verify.lua @ 51:0849be391140

Public read access; Read-only API for initiatives; Prepared integration of OpenID
author bsw
date Sun Apr 04 22:05:11 2010 +0200 (2010-04-04)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/openid/verify.lua	Sun Apr 04 22:05:11 2010 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +local claimed_identifier, errmsg = auth.openid.verify{
     1.5 +  force_https              = config.auth_openid_force_https,
     1.6 +  curl_options             = config.auth_openid_curl_options
     1.7 +}
     1.8 +
     1.9 +if not claimed_identifier then
    1.10 +  slot.put_into("error", _"Sorry, it was not possible to verify your OpenID.")
    1.11 +  return
    1.12 +end
    1.13 +
    1.14 +if not config.auth_openid_identifier_check_func(claimed_identifier) then
    1.15 +  slot.put_into("error", _"This identifier is not allowed for this instance.")
    1.16 +  return
    1.17 +end
    1.18 +
    1.19 +slot.put("validated as: ", encode.html(claimed_identifier), "<br />")
    1.20 +

Impressum / About Us