mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
Merge branch 'master' of https://github.com/tmilewski/omniauth
This commit is contained in:
commit
e065d89535
1 changed files with 9 additions and 2 deletions
|
@ -94,8 +94,15 @@ module OmniAuth
|
|||
end
|
||||
|
||||
def redirect(uri)
|
||||
r = Rack::Response.new("Redirecting to #{uri}...")
|
||||
r.redirect(uri)
|
||||
r = Rack::Response.new
|
||||
|
||||
if options[:iframe]
|
||||
r.write("<script type='text/javascript' charset='utf-8'>top.location.href = '#{uri}';</script>")
|
||||
else
|
||||
r.write("Redirecting to #{uri}...")
|
||||
r.redirect(uri)
|
||||
end
|
||||
|
||||
r.finish
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue