From 16407dfc110228f258470fc5216b8690a6928f21 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 9 Nov 2017 10:49:12 -0500 Subject: [PATCH] Add a `failed_code` we can check for when using Auth::Result --- lib/auth/result.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/auth/result.rb b/lib/auth/result.rb index 0c18d3e1e5e..35204bb7e35 100644 --- a/lib/auth/result.rb +++ b/lib/auth/result.rb @@ -6,8 +6,11 @@ class Auth::Result :admin_not_allowed_from_ip_address, :omit_username, :skip_email_validation - attr_accessor :failed, - :failed_reason + attr_accessor( + :failed, + :failed_reason, + :failed_code + ) def initialize @failed = false