Handle authentication failure callbacks with no message
This commit is contained in:
parent
64457dbbd0
commit
31e638474a
2 changed files with 2 additions and 1 deletions
|
@ -335,7 +335,7 @@ class UsersController < ApplicationController
|
|||
##
|
||||
# omniauth failure callback
|
||||
def auth_failure
|
||||
flash[:error] = t("users.auth_failure.#{params[:message]}")
|
||||
flash[:error] = t(params[:message], :scope => "users.auth_failure", :default => t("users.auth_failure.unknown_error"))
|
||||
redirect_to params[:origin] || login_url
|
||||
end
|
||||
|
||||
|
|
|
@ -2623,6 +2623,7 @@ en:
|
|||
no_authorization_code: No authorization code
|
||||
unknown_signature_algorithm: Unknown signature algorithm
|
||||
invalid_scope: Invalid scope
|
||||
unknown_error: Authentication failed
|
||||
auth_association:
|
||||
heading: Your ID is not associated with a OpenStreetMap account yet.
|
||||
option_1: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue