2015-08-10 11:05:06 +02:00
|
|
|
class User::CustomFailure < Devise::FailureApp
|
|
|
|
def redirect_url
|
2015-08-20 16:40:34 +02:00
|
|
|
url_for(controller: '/start', action: :index)
|
2015-08-10 11:05:06 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
# You need to override respond to eliminate recall
|
|
|
|
def respond
|
|
|
|
if http_auth?
|
|
|
|
http_auth
|
|
|
|
else
|
|
|
|
redirect
|
|
|
|
end
|
|
|
|
end
|
2015-08-20 16:40:34 +02:00
|
|
|
end
|