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: f6dd057ec97f97ab59a9bcba36d014f994f6042ec8877ebe5ca696317b4b0706
4
- data.tar.gz: 4be1969f1f142fdd563ce0b3de48888ffc65491c32d28bc6ced7d0a41142d14f
3
+ metadata.gz: '0045843eca13f85773f4d0fca27f2b3cb1bbe459a5076f3fdf3cc63cb5c36527'
4
+ data.tar.gz: 71652d858715cd22ac97a797a2cbebcf2d2166834260cab568153986a79082e5
5
5
  SHA512:
6
- metadata.gz: cb12a632363369958f210b86504c074bae31fbe072843ece75471a1a26a5ef0a722c5ef8295196387e49558260406be031abaffce90f891cc381ab8f5623e4e5
7
- data.tar.gz: a39639f8bd9adb2164fa9f1db86f21714e4ed7fd5a858584f7e1254b1ff5b0f22cb88b45051882407408969576741fbc10a4a9b60ff7c22c21e937152d9f0094
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?) || record.authenticate(record.current_password)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FoundersToolkit
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: founders_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock