X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2111ace158f3dd9496d49f82529074d77557b2d2..d28ae2ad0ab336a5c1f1b7152945b30a4e2cfd02:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index fcd330ec3..3a0e0a149 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -545,7 +545,7 @@ class UserController < ApplicationController # omniauth failure callback def auth_failure flash[:error] = t("user.auth_failure." + params[:message]) - redirect_to params[:origin] + redirect_to params[:origin] || login_url end private