You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
Not a big deal but it took me a bit of time to understand what was happening, so I'll document it here. Maybe there's a clever workaround to imagine; my current work-around is just to always use the ":login =>" form instead of the do xxx form.
When defining the login callback like this:
use Chowder::OpenID do |url|
user = User.first(:openid => url) and user.id
end
Sinatra 0.9.4 base.rb (line 359) does:
yield self if block_given?
So the login callback is called mistakingly, with Chowder::OpenId as a param.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Not a big deal but it took me a bit of time to understand what was happening, so I'll document it here. Maybe there's a clever workaround to imagine; my current work-around is just to always use the ":login =>" form instead of the do xxx form.
When defining the login callback like this:
use Chowder::OpenID do |url|
user = User.first(:openid => url) and user.id
end
Sinatra 0.9.4 base.rb (line 359) does:
So the login callback is called mistakingly, with Chowder::OpenId as a param.
The text was updated successfully, but these errors were encountered: