mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
Remove Devise FailureApp
This commit is contained in:
parent
28416a3375
commit
724d421f44
1 changed files with 0 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
|||
class DeviseCustomFailure < Devise::FailureApp
|
||||
def redirect_url
|
||||
return registrant_login_url if request.original_fullpath.to_s.match(%r{^\/registrant})
|
||||
return registrar_login_url if request.original_fullpath.to_s.match(%r{^\/registrar})
|
||||
return '/admin' if request.original_fullpath.to_s.match(%r{^\/admin\/que})
|
||||
return admin_login_url if request.original_fullpath.to_s.match(%r{^\/admin})
|
||||
root_url
|
||||
end
|
||||
|
||||
# You need to override respond to eliminate recall
|
||||
def respond
|
||||
if http_auth?
|
||||
http_auth
|
||||
else
|
||||
redirect
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue