authentication-rails 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/lib/authentication/rails/version.rb +1 -1
- data/lib/authentication/validations.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce380f4febc126486a0d2d90cab3c193dc4848338a341fb6679255e0db2f4c7c
|
4
|
+
data.tar.gz: 27feb53cc1ef6d40a06fbbfacf015af1e906a0dbdec09dfe48fa8f95144b20a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 546bb1f22806488ed1239d1d35e0f3d25f515e2f9b3b0cf272038d1ec524ace90fdc2360ffded84233db1a0939e426e2f8637d6d2b3e013a125b616601cce9fa
|
7
|
+
data.tar.gz: 0c54f193971b5df3752c9e53058c19d4b7cf21df77320771b10dbb139f8b4945c97f790a85cb13e83407e510a2ecfaf96a4e5b93283805b92f48cbfce503a7f5
|
@@ -11,7 +11,7 @@ module Authentication
|
|
11
11
|
if public_attribute.present? && private_attribute.present? && !model&.authenticate(private_attribute)
|
12
12
|
errors.add(:base,
|
13
13
|
I18n.t(
|
14
|
-
"activerecord.errors.models.#{self.class.to_s.underscore
|
14
|
+
"activerecord.errors.models.#{self.class.to_s.underscore}.invalid",
|
15
15
|
default: I18n.t(
|
16
16
|
'activerecord.errors.messages.invalid',
|
17
17
|
default: I18n.t('errors.messages.invalid')
|