lobby 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lobby/auth_user.rb +3 -1
- data/lib/lobby/version.rb +1 -1
- data/lib/lobby/version.rb~ +1 -1
- metadata +1 -1
data/lib/lobby/auth_user.rb
CHANGED
@@ -2,7 +2,7 @@ module Lobby
|
|
2
2
|
module AuthUser
|
3
3
|
|
4
4
|
def self.included(base)
|
5
|
-
base.has_secure_password(validations: validate_password?)
|
5
|
+
base.has_secure_password(validations: :validate_password?)
|
6
6
|
|
7
7
|
base.validates :email, presence: true, if: :email_required?
|
8
8
|
base.validates :email, format: {with: EMAIL_REGEX, multiline: true}, if: Proc.new { |u| u.email.present? }
|
@@ -97,6 +97,8 @@ module Lobby
|
|
97
97
|
tokenmail(:resend_signup_token)
|
98
98
|
end
|
99
99
|
|
100
|
+
protected
|
101
|
+
|
100
102
|
def validate_password?
|
101
103
|
true
|
102
104
|
end
|
data/lib/lobby/version.rb
CHANGED
data/lib/lobby/version.rb~
CHANGED