rodauth 2.46.0 → 2.47.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rodauth/features/active_sessions.rb +2 -2
  3. data/lib/rodauth/features/audit_logging.rb +2 -1
  4. data/lib/rodauth/features/base.rb +65 -10
  5. data/lib/rodauth/features/change_password.rb +11 -2
  6. data/lib/rodauth/features/confirm_password.rb +1 -1
  7. data/lib/rodauth/features/create_account.rb +2 -1
  8. data/lib/rodauth/features/email_auth.rb +13 -4
  9. data/lib/rodauth/features/email_base.rb +36 -1
  10. data/lib/rodauth/features/internal_request.rb +4 -0
  11. data/lib/rodauth/features/json.rb +5 -1
  12. data/lib/rodauth/features/jwt.rb +7 -1
  13. data/lib/rodauth/features/jwt_cors.rb +2 -0
  14. data/lib/rodauth/features/jwt_refresh.rb +33 -18
  15. data/lib/rodauth/features/lockout.rb +22 -19
  16. data/lib/rodauth/features/login.rb +12 -4
  17. data/lib/rodauth/features/login_password_requirements_base.rb +39 -9
  18. data/lib/rodauth/features/otp.rb +19 -10
  19. data/lib/rodauth/features/password_expiration.rb +0 -1
  20. data/lib/rodauth/features/password_grace_period.rb +7 -0
  21. data/lib/rodauth/features/password_pepper.rb +11 -1
  22. data/lib/rodauth/features/recovery_codes.rb +4 -1
  23. data/lib/rodauth/features/remember.rb +2 -0
  24. data/lib/rodauth/features/require_domain.rb +12 -0
  25. data/lib/rodauth/features/require_hmac_secret.rb +12 -0
  26. data/lib/rodauth/features/reset_password.rb +25 -20
  27. data/lib/rodauth/features/single_session.rb +6 -2
  28. data/lib/rodauth/features/sms_codes.rb +4 -1
  29. data/lib/rodauth/features/two_factor_base.rb +2 -1
  30. data/lib/rodauth/features/update_password_hash.rb +5 -1
  31. data/lib/rodauth/features/verify_account.rb +29 -20
  32. data/lib/rodauth/features/verify_login_change.rb +19 -11
  33. data/lib/rodauth/features/webauthn.rb +10 -5
  34. data/lib/rodauth/features/webauthn_login.rb +1 -10
  35. data/lib/rodauth/features/webauthn_verify_account.rb +0 -4
  36. data/lib/rodauth/version.rb +1 -1
  37. data/lib/rodauth.rb +2 -0
  38. metadata +3 -1
@@ -40,9 +40,5 @@ module Rodauth
40
40
  @webauthn_credential = webauthn_setup_credential_from_form_submission
41
41
  add_webauthn_credential(@webauthn_credential)
42
42
  end
43
-
44
- def webauthn_account_id
45
- super || account_id
46
- end
47
43
  end
48
44
  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 = 46
9
+ MINOR = 47
10
10
 
11
11
  # The patch version of Rodauth, updated only for bug fixes from the last
12
12
  # feature release.
data/lib/rodauth.rb CHANGED
@@ -7,6 +7,8 @@ module Rodauth
7
7
  SCOPE_INSTANCE_VARIABLES = [:@_rodauths, :@_rodauth].freeze
8
8
 
9
9
  class ConfigurationError < StandardError; end
10
+ class Error < StandardError; end
11
+ class SetPasswordFailure < Error; end
10
12
 
11
13
  def self.lib(opts=OPTS, &block)
12
14
  require 'roda'
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.46.0
4
+ version: 2.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
@@ -293,6 +293,8 @@ files:
293
293
  - lib/rodauth/features/path_class_methods.rb
294
294
  - lib/rodauth/features/recovery_codes.rb
295
295
  - lib/rodauth/features/remember.rb
296
+ - lib/rodauth/features/require_domain.rb
297
+ - lib/rodauth/features/require_hmac_secret.rb
296
298
  - lib/rodauth/features/reset_password.rb
297
299
  - lib/rodauth/features/reset_password_notify.rb
298
300
  - lib/rodauth/features/reset_password_verifies_account.rb