rails_jwt_auth 1.1.0 → 1.1.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c04dc1e693a3cb35abcfbaa7b061aeb42d87fdc743fb595d20c0d812c6d87c4
|
4
|
+
data.tar.gz: 3b3575f751d57cb3bd13d34afede3f676155141949bdd59b5944ca742e01bff4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09a5aeac00078d6b2883f19351375fcbea884b8244c7de3982a78b6cbefeb10afbf3aac5ab405f00864f9466e591e0e1371fafc0ae81c9eeb3816caced35db43'
|
7
|
+
data.tar.gz: d2a975be7d690175c9af2b4ada516ffed03b93f601b471f610259f184197ed958eb6dbae40f7d7c44c8303ec4b5545b766a09f194e1e478bd42412dd62958019
|
@@ -52,6 +52,7 @@ module RailsJwtAuth
|
|
52
52
|
assign_attributes(params)
|
53
53
|
valid? # validates first other fields
|
54
54
|
errors.add(:current_password, current_password_error) if current_password_error
|
55
|
+
errors.add(:password, 'blank') if params[:password].blank?
|
55
56
|
|
56
57
|
errors.empty? ? save : false
|
57
58
|
end
|