plutonium 0.12.14 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/Appraisals +1 -1
  3. data/app/assets/plutonium.css +1 -1
  4. data/app/views/application/_flash.html.erb +1 -1
  5. data/app/views/application/_flash_toasts.html.erb +1 -1
  6. data/app/views/layouts/rodauth.html.erb +7 -8
  7. data/app/views/rodauth/_email_auth_request_form.html.erb +2 -2
  8. data/app/views/rodauth/_login_form.html.erb +24 -18
  9. data/app/views/rodauth/_login_form_footer.html.erb +1 -1
  10. data/app/views/rodauth/change_login.html.erb +20 -11
  11. data/app/views/rodauth/change_password.html.erb +11 -11
  12. data/app/views/rodauth/close_account.html.erb +4 -4
  13. data/app/views/rodauth/create_account.html.erb +44 -18
  14. data/app/views/rodauth/email_auth.html.erb +2 -2
  15. data/app/views/rodauth/login.html.erb +3 -5
  16. data/app/views/rodauth/logout.html.erb +7 -4
  17. data/app/views/rodauth/otp_auth.html.erb +5 -6
  18. data/app/views/rodauth/otp_disable.html.erb +4 -5
  19. data/app/views/rodauth/otp_setup.html.erb +8 -8
  20. data/app/views/rodauth/recovery_auth.html.erb +5 -5
  21. data/app/views/rodauth/recovery_codes.html.erb +5 -5
  22. data/app/views/rodauth/remember.html.erb +2 -2
  23. data/app/views/rodauth/reset_password.html.erb +8 -8
  24. data/app/views/rodauth/reset_password_request.html.erb +14 -10
  25. data/app/views/rodauth/sms_auth.html.erb +4 -4
  26. data/app/views/rodauth/sms_confirm.html.erb +4 -4
  27. data/app/views/rodauth/sms_disable.html.erb +5 -5
  28. data/app/views/rodauth/sms_request.html.erb +2 -2
  29. data/app/views/rodauth/sms_setup.html.erb +7 -7
  30. data/app/views/rodauth/two_factor_disable.html.erb +4 -4
  31. data/app/views/rodauth/unlock_account.html.erb +8 -10
  32. data/app/views/rodauth/unlock_account_request.html.erb +5 -7
  33. data/app/views/rodauth/verify_account.html.erb +8 -8
  34. data/app/views/rodauth/verify_account_resend.html.erb +13 -10
  35. data/app/views/rodauth/verify_login_change.html.erb +2 -2
  36. data/app/views/rodauth/webauthn_auth.html.erb +2 -2
  37. data/app/views/rodauth/webauthn_remove.html.erb +5 -5
  38. data/app/views/rodauth/webauthn_setup.html.erb +5 -5
  39. data/lib/generators/pu/rodauth/install_generator.rb +0 -5
  40. data/lib/generators/pu/rodauth/migration/active_record/audit_logging.erb +2 -2
  41. data/lib/generators/pu/rodauth/migration_generator.rb +30 -51
  42. data/lib/generators/pu/rodauth/templates/app/mailers/rodauth_mailer.rb.tt +1 -0
  43. data/lib/generators/pu/rodauth/templates/app/models/account.rb.tt +0 -8
  44. data/lib/generators/pu/rodauth/templates/app/rodauth/rodauth_plugin.rb.tt +8 -2
  45. data/lib/generators/pu/rodauth/templates/db/migrate/create_rodauth.rb.tt +0 -8
  46. data/lib/plutonium/auth/rodauth.rb +3 -1
  47. data/lib/plutonium/core/controllers/base.rb +1 -1
  48. data/lib/plutonium/helpers/display_helper.rb +8 -6
  49. data/lib/plutonium/helpers/form_helper.rb +17 -5
  50. data/lib/plutonium/rodauth/controller_methods.rb +1 -0
  51. data/lib/plutonium/version.rb +1 -1
  52. metadata +2 -21
  53. data/lib/generators/pu/rodauth/migration/sequel/account_expiration.erb +0 -7
  54. data/lib/generators/pu/rodauth/migration/sequel/active_sessions.erb +0 -8
  55. data/lib/generators/pu/rodauth/migration/sequel/audit_logging.erb +0 -17
  56. data/lib/generators/pu/rodauth/migration/sequel/base.erb +0 -25
  57. data/lib/generators/pu/rodauth/migration/sequel/disallow_password_reuse.erb +0 -6
  58. data/lib/generators/pu/rodauth/migration/sequel/email_auth.erb +0 -7
  59. data/lib/generators/pu/rodauth/migration/sequel/jwt_refresh.erb +0 -8
  60. data/lib/generators/pu/rodauth/migration/sequel/lockout.erb +0 -11
  61. data/lib/generators/pu/rodauth/migration/sequel/otp.erb +0 -7
  62. data/lib/generators/pu/rodauth/migration/sequel/password_expiration.erb +0 -5
  63. data/lib/generators/pu/rodauth/migration/sequel/recovery_codes.erb +0 -6
  64. data/lib/generators/pu/rodauth/migration/sequel/remember.erb +0 -6
  65. data/lib/generators/pu/rodauth/migration/sequel/reset_password.erb +0 -7
  66. data/lib/generators/pu/rodauth/migration/sequel/separate_passwords.erb +0 -6
  67. data/lib/generators/pu/rodauth/migration/sequel/single_session.erb +0 -5
  68. data/lib/generators/pu/rodauth/migration/sequel/sms_codes.erb +0 -8
  69. data/lib/generators/pu/rodauth/migration/sequel/verify_account.erb +0 -7
  70. data/lib/generators/pu/rodauth/migration/sequel/verify_login_change.erb +0 -7
  71. data/lib/generators/pu/rodauth/migration/sequel/webauthn.erb +0 -13
@@ -1,8 +0,0 @@
1
- # Used by the sms codes feature
2
- create_table :<%= table_prefix %>_sms_codes do
3
- foreign_key :id, :<%= table_prefix.pluralize %>, primary_key: true, type: :Bignum
4
- String :phone_number, null: false
5
- Integer :num_failures
6
- String :code
7
- DateTime :code_issued_at, null: false, default: Sequel::CURRENT_TIMESTAMP
8
- end
@@ -1,7 +0,0 @@
1
- # Used by the account verification feature
2
- create_table :<%= table_prefix %>_verification_keys do
3
- foreign_key :id, :<%= table_prefix.pluralize %>, primary_key: true, type: :Bignum
4
- String :key, null: false
5
- DateTime :requested_at, null: false, default: Sequel::CURRENT_TIMESTAMP
6
- DateTime :email_last_sent, null: false, default: Sequel::CURRENT_TIMESTAMP
7
- end
@@ -1,7 +0,0 @@
1
- # Used by the verify login change feature
2
- create_table :<%= table_prefix %>_login_change_keys do
3
- foreign_key :id, :<%= table_prefix.pluralize %>, primary_key: true, type: :Bignum
4
- String :key, null: false
5
- String :login, null: false
6
- DateTime :deadline, null: false
7
- end
@@ -1,13 +0,0 @@
1
- # Used by the webauthn feature
2
- create_table :<%= table_prefix %>_webauthn_user_ids do
3
- foreign_key :id, :<%= table_prefix.pluralize %>, primary_key: true, type: :Bignum
4
- String :webauthn_id, null: false
5
- end
6
- create_table :<%= table_prefix %>_webauthn_keys do
7
- foreign_key :<%= table_prefix %>_id, :<%= table_prefix.pluralize %>, type: :Bignum
8
- String :webauthn_id
9
- String :public_key, null: false
10
- Integer :sign_count, null: false
11
- Time :last_use, null: false, default: Sequel::CURRENT_TIMESTAMP
12
- primary_key [:<%= table_prefix %>_id, :webauthn_id]
13
- end