Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-25 03:06:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-25 03:06:14 +0300
commit6d43720a1a86ccca9618417a6d0415e7d522fa49 (patch)
treeceab63f6374252b8afe4913b949bae39a027366f /lib/gitlab/devise_failure.rb
parent46bfa73d93786bc2a832be7e42e2119712a0bafb (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/devise_failure.rb')
-rw-r--r--lib/gitlab/devise_failure.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/devise_failure.rb b/lib/gitlab/devise_failure.rb
index 4d27b706e1e..59a7c4a6660 100644
--- a/lib/gitlab/devise_failure.rb
+++ b/lib/gitlab/devise_failure.rb
@@ -2,6 +2,8 @@
module Gitlab
class DeviseFailure < Devise::FailureApp
+ include ::SessionsHelper
+
# 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
def http_auth?
@@ -9,5 +11,11 @@ module Gitlab
request_format && super
end
+
+ def respond
+ limit_session_time
+
+ super
+ end
end
end