phcmemberspro 5.4.0 → 5.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec860698968b2ce7a857f77513f098c43e6f9cc6
|
4
|
+
data.tar.gz: 8003313f970d35ab4ed81031d474606359dd7446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96bab732f1295577950dd08abcaf3628ba40ff66b455d9cc6c1347f4b102918496e7f66970cb6a7c2274fa7f58afcd5d38ac1e314b0f015c9ce32fb0aa024b67
|
7
|
+
data.tar.gz: 3f249b243791052cc7daaa46024070ec633a314650677862194f09c762a83f9ea9d19e3decb07d8332afb7612c8cae650e4dd42a1c6dd230409f8ef0aeef0a76
|
@@ -23,12 +23,12 @@ module Phcmemberspro
|
|
23
23
|
|
24
24
|
validates :memail,
|
25
25
|
presence: true,
|
26
|
-
uniqueness
|
26
|
+
uniqueness: {scope: :user_id},
|
27
27
|
length: { minimum: 6 }
|
28
28
|
|
29
29
|
validates :mphone,
|
30
30
|
presence: true,
|
31
|
-
uniqueness
|
31
|
+
uniqueness: {scope: :user_id},
|
32
32
|
format: { with: /\A(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}\z/, message: "Please Follow this Phone Number Format: xxx-xxx-xxxx" }
|
33
33
|
|
34
34
|
end
|