Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
updated examples to the omniauth standard for failure routes
Browse files Browse the repository at this point in the history
  • Loading branch information
databyte authored and DDeBruler committed Oct 26, 2018
1 parent 194cf5f commit 963c9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/rails-todo-list-app/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

# This is where we are redirected if OmniAuth fails to authenticate the user.
# user
match '/auth/:provider/failure', to: redirect('/'), via: [:get, :post]
match '/auth/failure', to: redirect('/'), via: [:get, :post]
end
2 changes: 1 addition & 1 deletion examples/sinatra-multiple-providers-app/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
end

%w(get post).each do |method|
send(method, '/auth/:provider/failure') do
send(method, '/auth/failure') do
"Aw shucks, we couldn't verify your identity!"
end
end

0 comments on commit 963c9ca

Please sign in to comment.