lib/sinatra/omniauth.rb in sinatra_omniauth-0.2.1 vs lib/sinatra/omniauth.rb in sinatra_omniauth-0.2.2
- old
+ new
@@ -196,9 +196,14 @@
elsif ['google', 'yahoo', 'linked_in', 'twitter', 'myopenid', 'openid', 'open_id'].index(authentication_route) != nil
@authhash[:email] = oaui['email'] || ''
@authhash[:name] = oaui['name'] || ''
@authhash[:uid] = (omniauth['uid'] || '').to_s
@authhash[:provider] = omniauth['provider'] || ''
+ elsif authentication_route == 'aol'
+ @authhash[:email] = oaui['email'] || ''
+ @authhash[:name] = oaui['name'] || ''
+ @authhash[:uid] = (omniauth['uid'] || '').to_s
+ @authhash[:provider] = omniauth['provider'] || ''
else
# REVISIT: debug to output the hash that has been returned when adding new authentications
return '<pre>'+omniauth.to_yaml+'</pre>'
end