summaryrefslogtreecommitdiff
path: root/lib/gitlab/auth/otp/strategies/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/auth/otp/strategies/base.rb')
-rw-r--r--lib/gitlab/auth/otp/strategies/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/auth/otp/strategies/base.rb b/lib/gitlab/auth/otp/strategies/base.rb
index 718630e0e31..7d8513642c4 100644
--- a/lib/gitlab/auth/otp/strategies/base.rb
+++ b/lib/gitlab/auth/otp/strategies/base.rb
@@ -25,6 +25,10 @@ module Gitlab
result
end
+
+ def error_from_response(response)
+ error(response.message, response.code)
+ end
end
end
end