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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67dee499e56dac8cb64c9996fb17f677063322511b1af6ea4cd2f3f27bf42cf7
4
- data.tar.gz: 9e214c13d49b1cdbe0cebf920aeee51b20373bd6fed8f2b8bdef81f97812c1dd
3
+ metadata.gz: ebccee76adf022cf82eca6e36c69f5846353b4499021aec5f410dc7e3b04c65f
4
+ data.tar.gz: b9fb907c3430c9b043c8cc361877c191ed8f4ed99388d410d0eb84b66cb57ab5
5
5
  SHA512:
6
- metadata.gz: 1e081aca8384dc8ba1cbe97ac8e4d78330fbf7ef7bf5d7f67524308d7efcad57171c984f087a2bfa55a17c955dfafae4a6a843c7ab70905c83406581ad64c841
7
- data.tar.gz: 02b78b406bc74f31d51431538ba9aca430fccaef152a36aeffaa265d47d5cd3ba568773f83ff36e9cc7f8b798341bf23d77482e6f5433d16b56210b28a351210
6
+ metadata.gz: c38cbd45e2ef7a29c4de7c2e9450979a2739bae690af5dd34288684f8c6289423334033e26ecd96fca758cae0ef7f1a6c6af69de36d95651a6c577206721fde5
7
+ data.tar.gz: 2c69a447d7d465e76b29f1746dc3f886881f39bb20af47d292093333104ab2e88edf74d4d6262f96f38492d69d284e23719e8cf29823b2a117fd52967c7b79b1
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2023 Jeremy Evans
1
+ Copyright (c) 2015-2026 Jeremy Evans and contributors
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to
@@ -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, account_open_status_value){|id| get_password_reset_key(id)}
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
@@ -6,7 +6,7 @@ module Rodauth
6
6
  MAJOR = 2
7
7
 
8
8
  # The minor version of Rodauth, updated for new feature releases of Rodauth.
9
- MINOR = 42
9
+ MINOR = 43
10
10
 
11
11
  # The patch version of Rodauth, updated only for bug fixes from the last
12
12
  # feature release.
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.42.0
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: 3.6.9
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: []