rodauth 2.42.0 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/lib/rodauth/features/reset_password.rb +5 -1
- data/lib/rodauth/features/reset_password_verifies_account.rb +26 -0
- data/lib/rodauth/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ebccee76adf022cf82eca6e36c69f5846353b4499021aec5f410dc7e3b04c65f
|
|
4
|
+
data.tar.gz: b9fb907c3430c9b043c8cc361877c191ed8f4ed99388d410d0eb84b66cb57ab5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c38cbd45e2ef7a29c4de7c2e9450979a2739bae690af5dd34288684f8c6289423334033e26ecd96fca758cae0ef7f1a6c6af69de36d95651a6c577206721fde5
|
|
7
|
+
data.tar.gz: 2c69a447d7d465e76b29f1746dc3f886881f39bb20af47d292093333104ab2e88edf74d4d6262f96f38492d69d284e23719e8cf29823b2a117fd52967c7b79b1
|
data/MIT-LICENSE
CHANGED
|
@@ -254,7 +254,11 @@ module Rodauth
|
|
|
254
254
|
end
|
|
255
255
|
|
|
256
256
|
def _account_from_reset_password_key(token)
|
|
257
|
-
account_from_key(token,
|
|
257
|
+
account_from_key(token, reset_password_account_status_value){|id| get_password_reset_key(id)}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
def reset_password_account_status_value
|
|
261
|
+
account_open_status_value
|
|
258
262
|
end
|
|
259
263
|
end
|
|
260
264
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen-string-literal: true
|
|
2
|
+
|
|
3
|
+
module Rodauth
|
|
4
|
+
Feature.define(:reset_password_verifies_account, :ResetPasswordVerifiesAccount) do
|
|
5
|
+
depends :reset_password, :verify_account
|
|
6
|
+
|
|
7
|
+
def reset_password_request_for_unverified_account
|
|
8
|
+
nil
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
private
|
|
12
|
+
|
|
13
|
+
def after_reset_password
|
|
14
|
+
super
|
|
15
|
+
|
|
16
|
+
unless open_account?
|
|
17
|
+
verify_account
|
|
18
|
+
remove_verify_account_key
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def reset_password_account_status_value
|
|
23
|
+
Array(super) << account_unverified_status_value
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
data/lib/rodauth/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rodauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.43.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Evans
|
|
@@ -294,6 +294,7 @@ files:
|
|
|
294
294
|
- lib/rodauth/features/remember.rb
|
|
295
295
|
- lib/rodauth/features/reset_password.rb
|
|
296
296
|
- lib/rodauth/features/reset_password_notify.rb
|
|
297
|
+
- lib/rodauth/features/reset_password_verifies_account.rb
|
|
297
298
|
- lib/rodauth/features/session_expiration.rb
|
|
298
299
|
- lib/rodauth/features/single_session.rb
|
|
299
300
|
- lib/rodauth/features/sms_codes.rb
|
|
@@ -402,7 +403,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
402
403
|
- !ruby/object:Gem::Version
|
|
403
404
|
version: '0'
|
|
404
405
|
requirements: []
|
|
405
|
-
rubygems_version:
|
|
406
|
+
rubygems_version: 4.0.3
|
|
406
407
|
specification_version: 4
|
|
407
408
|
summary: Authentication and Account Management Framework for Rack Applications
|
|
408
409
|
test_files: []
|