dash_myadventist 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/myadventist_user.rb +2 -2
- data/config/locales/en.yml +1 -1
- data/lib/dash_myadventist/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6936a424b59212b5bd5f1131696b826b3f843e61
|
4
|
+
data.tar.gz: 6f1461b4ed1e0caec0a5e2102428ffe09d3d510c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f6bb0f962eb2c130e966d47171087a3f58ccf1ca16af81a4b8c8a395f925e6cec3222a6261f96f27fdc18162b0f5d12bb71c6e23a1bd2dad90fd0abec63dc97
|
7
|
+
data.tar.gz: 0643f6b4685e624ce098c85e708180deeb052044ee416e42cbaab58369492165313ced23f5ad2ff91794b77467d89423572a44552f0000b327dd178cd812e1a3
|
@@ -3,8 +3,8 @@ class MyadventistUser
|
|
3
3
|
|
4
4
|
validates :first_name, :last_name, :email, :password, presence: true
|
5
5
|
validates :email, email: true
|
6
|
-
# Password complexity: at least 1
|
7
|
-
validates :password, length: {minimum: 12}, format: { with: /(
|
6
|
+
# Password complexity: at least 1 uppercase and lowercase character
|
7
|
+
validates :password, length: {minimum: 12}, format: { with: /(?=.*[A-Z])(?=.*[a-z]).*/, message: I18n.t("dash_myadventist.myadventist_user.validations.password_complexity") }
|
8
8
|
|
9
9
|
attr_accessor :first_name, :last_name, :email, :password, :adventist_uid
|
10
10
|
|
data/config/locales/en.yml
CHANGED