blob: 111ea697ec2a9dcb29cc7e31e871a3f384ab0bf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
module Gitlab
class DeviseFailure < Devise::FailureApp
# 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?
request_format && super
end
end
end
|