Add a `failed_code` we can check for when using Auth::Result

This commit is contained in:
Robin Ward 2017-11-09 10:49:12 -05:00
parent 5d8508c523
commit 16407dfc11
1 changed files with 5 additions and 2 deletions

View File

@ -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