rodauth-rails 0.18.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +48 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +366 -651
  5. data/lib/generators/rodauth/install_generator.rb +32 -35
  6. data/lib/generators/rodauth/migration/active_sessions.erb +2 -2
  7. data/lib/generators/rodauth/migration/audit_logging.erb +1 -1
  8. data/lib/generators/rodauth/migration/base.erb +2 -2
  9. data/lib/generators/rodauth/migration/email_auth.erb +1 -1
  10. data/lib/generators/rodauth/migration/otp.erb +1 -1
  11. data/lib/generators/rodauth/migration/password_expiration.erb +1 -1
  12. data/lib/generators/rodauth/migration/reset_password.erb +1 -1
  13. data/lib/generators/rodauth/migration/sms_codes.erb +1 -1
  14. data/lib/generators/rodauth/migration/verify_account.erb +2 -2
  15. data/lib/generators/rodauth/migration/webauthn.erb +1 -1
  16. data/lib/generators/rodauth/migration_generator.rb +9 -2
  17. data/lib/generators/rodauth/migration_helpers.rb +8 -0
  18. data/lib/generators/rodauth/templates/INSTRUCTIONS +40 -0
  19. data/lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb +36 -19
  20. data/lib/generators/rodauth/templates/app/misc/rodauth_app.rb +27 -0
  21. data/lib/generators/rodauth/templates/app/{lib/rodauth_app.rb → misc/rodauth_main.rb} +10 -56
  22. data/lib/generators/rodauth/templates/app/models/account.rb +1 -0
  23. data/lib/generators/rodauth/templates/app/views/rodauth/_email_auth_request_form.html.erb +1 -1
  24. data/lib/generators/rodauth/templates/app/views/rodauth/change_login.html.erb +1 -1
  25. data/lib/generators/rodauth/templates/app/views/rodauth/change_password.html.erb +1 -1
  26. data/lib/generators/rodauth/templates/app/views/rodauth/close_account.html.erb +1 -1
  27. data/lib/generators/rodauth/templates/app/views/rodauth/confirm_password.html.erb +1 -1
  28. data/lib/generators/rodauth/templates/app/views/rodauth/create_account.html.erb +1 -1
  29. data/lib/generators/rodauth/templates/app/views/rodauth/email_auth.html.erb +1 -1
  30. data/lib/generators/rodauth/templates/app/views/rodauth/logout.html.erb +1 -1
  31. data/lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb +1 -1
  32. data/lib/generators/rodauth/templates/app/views/rodauth/otp_disable.html.erb +1 -1
  33. data/lib/generators/rodauth/templates/app/views/rodauth/otp_setup.html.erb +1 -1
  34. data/lib/generators/rodauth/templates/app/views/rodauth/recovery_auth.html.erb +1 -1
  35. data/lib/generators/rodauth/templates/app/views/rodauth/remember.html.erb +1 -1
  36. data/lib/generators/rodauth/templates/app/views/rodauth/reset_password.html.erb +1 -1
  37. data/lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb +1 -1
  38. data/lib/generators/rodauth/templates/app/views/rodauth/sms_auth.html.erb +1 -1
  39. data/lib/generators/rodauth/templates/app/views/rodauth/sms_confirm.html.erb +1 -1
  40. data/lib/generators/rodauth/templates/app/views/rodauth/sms_disable.html.erb +1 -1
  41. data/lib/generators/rodauth/templates/app/views/rodauth/sms_request.html.erb +1 -1
  42. data/lib/generators/rodauth/templates/app/views/rodauth/sms_setup.html.erb +1 -1
  43. data/lib/generators/rodauth/templates/app/views/rodauth/two_factor_disable.html.erb +1 -1
  44. data/lib/generators/rodauth/templates/app/views/rodauth/unlock_account.html.erb +1 -1
  45. data/lib/generators/rodauth/templates/app/views/rodauth/unlock_account_request.html.erb +1 -1
  46. data/lib/generators/rodauth/templates/app/views/rodauth/verify_account.html.erb +1 -1
  47. data/lib/generators/rodauth/templates/app/views/rodauth/verify_account_resend.html.erb +1 -1
  48. data/lib/generators/rodauth/templates/app/views/rodauth/verify_login_change.html.erb +1 -1
  49. data/lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb +1 -1
  50. data/lib/generators/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb +1 -1
  51. data/lib/generators/rodauth/templates/app/views/rodauth/webauthn_setup.html.erb +1 -1
  52. data/lib/rodauth/rails/app.rb +18 -4
  53. data/lib/rodauth/rails/auth.rb +1 -16
  54. data/lib/rodauth/rails/controller_methods.rb +4 -29
  55. data/lib/rodauth/rails/feature/base.rb +21 -0
  56. data/lib/rodauth/rails/feature/internal_request.rb +10 -4
  57. data/lib/rodauth/rails/feature/render.rb +8 -0
  58. data/lib/rodauth/rails/tasks.rake +2 -2
  59. data/lib/rodauth/rails/version.rb +1 -1
  60. data/lib/rodauth/rails.rb +9 -20
  61. data/rodauth-rails.gemspec +2 -2
  62. metadata +10 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de49a82bc699c6aff9764e277e9d03171d5808b907e53f4668c195c744ac05fc
4
- data.tar.gz: 8f921485a7ebb8fdbdc810eb8900480aae8b11ba9c3cdc3540e82a581951e270
3
+ metadata.gz: f93b80457e9c6e9ea6083974e05514de8e605b0f9a4015fe765ffc1c4059c5ee
4
+ data.tar.gz: '06877735d144b893b1a7a08f125e34316196679e47038112c6df215e352268c6'
5
5
  SHA512:
6
- metadata.gz: e8ef59ddc0de0a5f0a9197597195701f0f37f9fffba4112309603279af151f7d9c6d9b50453f8217b3c93db2228b095d369f0c399716f4114dbafb8244f94718
7
- data.tar.gz: d1ac36ce1fc3c647e740c18a90fde1302d3ba3476a89bf55e78be6d4e7998dced276504c11f721fa14016688ec3d14fb2e7556c327f1fdf0571a9dbade82d6a4
6
+ metadata.gz: 7f26bf373cb8a64e2e0d5156aff9ca94e468d9eb257dcd2e34f702d43a6506bacdc7a22bd85090ddefddc972ebb25b22f3012bca2f21b84aece970d138159166
7
+ data.tar.gz: b5811e6ae069e71f7cd8be35b9bd884c463aa709a1be4abc6fd792bf747ba7aabe0d7aa2f3f4f7c43466f153b163912d55957d0fd84d1314b37ac60ca4a5b221
data/CHANGELOG.md CHANGED
@@ -1,3 +1,51 @@
1
+ ## 1.2.0 (2022-02-11)
2
+
3
+ * Work around Active Record 4.2 not supporting procs for literal SQL column default (@janko)
4
+
5
+ * Avoid re-fetching the account in `#current_account` when it has already been fetched by Rodauth (@janko)
6
+
7
+ * Extract `#current_account` helper functionality into `#rails_account` Rodauth method (@janko)
8
+
9
+ * Use default account status values in generated configuration, with enum on `Account` model (@janko)
10
+
11
+ ## 1.1.0 (2022-01-16)
12
+
13
+ * Automatically route the path prefix in `r.rodauth` if one has been set (@janko)
14
+
15
+ ## 1.0.0 (2021-12-25)
16
+
17
+ * Set Rodauth's email subject in the generated mailer (@janko)
18
+
19
+ * Raise error when outside of a request and `config.action_mailer.default_url_options` is unset (@janko)
20
+
21
+ * Avoid method re-definition warnings with named auth classes caused by `post_configure` being called twice (@janko)
22
+
23
+ * Don't modify `config.action_mailer.default_url_options` when `:protocol` is missing (@janko)
24
+
25
+ * Move `Rodauth::Rails.url_options` into `Rodauth::Auth#rails_url_options` (@janko)
26
+
27
+ * Generate named auth classes in `rodauth:install` generator (@janko)
28
+
29
+ * Generate `rodauth_app.rb` in `app/misc` directory (@janko)
30
+
31
+ * Add `--name` option to `rodauth:migration` generator (@janko)
32
+
33
+ * Disable Turbo in all built-in and generated views (@janko)
34
+
35
+ * Modify generated mailer integration to generate URLs according to `default_url_options` (@janko)
36
+
37
+ * Skip Active Record files in `rodauth:install` if `ActiveRecord::Railtie` is not defined (@janko)
38
+
39
+ * Stop loading `pass` plugin in `Rodauth::Rails::App` (@janko)
40
+
41
+ * Remove deprecated `:query` and `:form` options in `Rodauth::Rails.rodauth` (@janko)
42
+
43
+ * Require internal_request feature to be enabled in `Rodauth::Rails.rodauth` (@janko)
44
+
45
+ ## 0.18.1 (2021-12-16)
46
+
47
+ * Loosen Rails gem dependency to allow Rails 7.x (Intrepidd)
48
+
1
49
  ## 0.18.0 (2021-11-05)
2
50
 
3
51
  * Disable Turbo on the generated login form (@janko)
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 Janko Marohnić
3
+ Copyright (c) 2020-2022 Janko Marohnić
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal