Ability to skip email validation via a plugin

This commit is contained in:
Robin Ward
2016-09-07 14:05:46 -04:00
parent aeae63a56a
commit 9609a47016
4 changed files with 21 additions and 3 deletions

View File

@ -3,7 +3,8 @@ class Auth::Result
:email_valid, :extra_data, :awaiting_activation,
:awaiting_approval, :authenticated, :authenticator_name,
:requires_invite, :not_allowed_from_ip_address,
:admin_not_allowed_from_ip_address, :omit_username
:admin_not_allowed_from_ip_address, :omit_username,
:skip_email_validation
attr_accessor :failed,
:failed_reason
@ -23,7 +24,8 @@ class Auth::Result
omit_username: omit_username,
name: name,
authenticator_name: authenticator_name,
extra_data: extra_data }
extra_data: extra_data,
skip_email_validation: !!skip_email_validation }
end
def to_client_hash