Class: Gitlab::DeviseFailure
- Inherits:
-
Devise::FailureApp
- Object
- Devise::FailureApp
- Gitlab::DeviseFailure
- Includes:
- SessionsHelper
- Defined in:
- lib/gitlab/devise_failure.rb
Instance Method Summary collapse
-
#http_auth? ⇒ Boolean
If the request format is not known, send a redirect instead of a 401 response, since this is the outcome we're most likely to want.
- #respond ⇒ Object
Methods included from SessionsHelper
#limit_session_time, #unconfirmed_email?
Instance Method Details
#http_auth? ⇒ Boolean
If the request format is not known, send a redirect instead of a 401 response, since this is the outcome we're most likely to want
9 10 11 |
# File 'lib/gitlab/devise_failure.rb', line 9 def http_auth? request_format && super end |
#respond ⇒ Object
13 14 15 16 17 |
# File 'lib/gitlab/devise_failure.rb', line 13 def respond limit_session_time super end |