founders_toolkit 0.2.0 → 0.2.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: '0045843eca13f85773f4d0fca27f2b3cb1bbe459a5076f3fdf3cc63cb5c36527'
|
4
|
+
data.tar.gz: 71652d858715cd22ac97a797a2cbebcf2d2166834260cab568153986a79082e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce28ceea9df56fb1340eaba37bca06ac8b2dbb604f14832f65df2b8b49c7e68634ffa0776e24e3d38055233f0224f16700d3e81bdd43764c0fbc03e747181e2d
|
7
|
+
data.tar.gz: 137cdb98140961052d81f0ab4a1182f360ee2ca6bda200819b472330f8c017c7032bbf3f0b4e7e26c0cb31ffa7d6adef2750b18ccfb71d1762ce6d6116b7a6e6
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.2.1] - 2021-03-25
|
10
|
+
### Fixed
|
11
|
+
- Fixed the protected attributes validator when updating the password.
|
12
|
+
|
9
13
|
## [0.1.0] - 2021-03-25
|
10
14
|
- No real change, just CI
|
11
15
|
|
@@ -31,7 +31,10 @@ module FoundersToolkit::Auth::Securable::Validations
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def authenticate?(record)
|
34
|
-
record.try(:reset_password_token?)
|
34
|
+
return true if record.try(:reset_password_token?)
|
35
|
+
|
36
|
+
fresh_record = record.class.find(record.id)
|
37
|
+
fresh_record.authenticate(record.current_password)
|
35
38
|
end
|
36
39
|
|
37
40
|
module HelperMethods
|