cop-detective 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/validator.rb +0 -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: 06f85c740eb5927822869962dce4525e402deeee
|
4
|
+
data.tar.gz: 2c88402b65de39849cd04059e26f30bec92fc9ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8407958e295503aa1fe6e4d20ab4e36fcb990280cefa838207c35a638a83b467a92573acad80517d968c45257c8288080225fadcf87cf7d417822c5d0353fcf1
|
7
|
+
data.tar.gz: b70aa086ed558a1b6d8e4f9bc5d6d39bdab42c929d3cfeb93dc1d83a117248c8a1db26f9002517a281bacce0028bf033af2ac89b2d6d7834b1a0e7beb74b2007
|
data/lib/validator.rb
CHANGED
@@ -13,7 +13,6 @@ class CopDetectiveValidator
|
|
13
13
|
def validate_new_passwords(user, password, confirmation)
|
14
14
|
if new_passwords_match?(password, confirmation)
|
15
15
|
user.password = password
|
16
|
-
user.update_attributes(password: password)
|
17
16
|
@@messages[:notice] = "Password updated"
|
18
17
|
else
|
19
18
|
user.errors.full_messages << CopDetective::ErrorMessages.unsaved_password(CopDetective::ErrorMessages.non_matching)
|