rodauth-rails 0.18.0 → 1.2.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/CHANGELOG.md +48 -0
- data/LICENSE.txt +1 -1
- data/README.md +366 -651
- data/lib/generators/rodauth/install_generator.rb +32 -35
- data/lib/generators/rodauth/migration/active_sessions.erb +2 -2
- data/lib/generators/rodauth/migration/audit_logging.erb +1 -1
- data/lib/generators/rodauth/migration/base.erb +2 -2
- data/lib/generators/rodauth/migration/email_auth.erb +1 -1
- data/lib/generators/rodauth/migration/otp.erb +1 -1
- data/lib/generators/rodauth/migration/password_expiration.erb +1 -1
- data/lib/generators/rodauth/migration/reset_password.erb +1 -1
- data/lib/generators/rodauth/migration/sms_codes.erb +1 -1
- data/lib/generators/rodauth/migration/verify_account.erb +2 -2
- data/lib/generators/rodauth/migration/webauthn.erb +1 -1
- data/lib/generators/rodauth/migration_generator.rb +9 -2
- data/lib/generators/rodauth/migration_helpers.rb +8 -0
- data/lib/generators/rodauth/templates/INSTRUCTIONS +40 -0
- data/lib/generators/rodauth/templates/app/mailers/rodauth_mailer.rb +36 -19
- data/lib/generators/rodauth/templates/app/misc/rodauth_app.rb +27 -0
- data/lib/generators/rodauth/templates/app/{lib/rodauth_app.rb → misc/rodauth_main.rb} +10 -56
- data/lib/generators/rodauth/templates/app/models/account.rb +1 -0
- data/lib/generators/rodauth/templates/app/views/rodauth/_email_auth_request_form.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/change_login.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/change_password.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/close_account.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/confirm_password.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/create_account.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/email_auth.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/logout.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/otp_disable.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/otp_setup.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/recovery_auth.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/remember.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/reset_password.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/reset_password_request.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/sms_auth.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/sms_confirm.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/sms_disable.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/sms_request.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/sms_setup.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/two_factor_disable.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/unlock_account.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/unlock_account_request.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/verify_account.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/verify_account_resend.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/verify_login_change.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb +1 -1
- data/lib/generators/rodauth/templates/app/views/rodauth/webauthn_setup.html.erb +1 -1
- data/lib/rodauth/rails/app.rb +18 -4
- data/lib/rodauth/rails/auth.rb +1 -16
- data/lib/rodauth/rails/controller_methods.rb +4 -29
- data/lib/rodauth/rails/feature/base.rb +21 -0
- data/lib/rodauth/rails/feature/internal_request.rb +10 -4
- data/lib/rodauth/rails/feature/render.rb +8 -0
- data/lib/rodauth/rails/tasks.rake +2 -2
- data/lib/rodauth/rails/version.rb +1 -1
- data/lib/rodauth/rails.rb +9 -20
- data/rodauth-rails.gemspec +2 -2
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f93b80457e9c6e9ea6083974e05514de8e605b0f9a4015fe765ffc1c4059c5ee
|
4
|
+
data.tar.gz: '06877735d144b893b1a7a08f125e34316196679e47038112c6df215e352268c6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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