authentication-zero 0.0.10 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -2
- data/lib/authentication_zero/version.rb +1 -1
- data/lib/generators/authentication/authentication_generator.rb +9 -11
- data/lib/generators/authentication/templates/controllers/api/cancellations_controller.rb.tt +1 -1
- data/lib/generators/authentication/templates/controllers/api/emails_controller.rb.tt +26 -0
- data/lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt +4 -4
- data/lib/generators/authentication/templates/controllers/api/passwords_controller.rb.tt +4 -3
- data/lib/generators/authentication/templates/controllers/api/registrations_controller.rb.tt +1 -1
- data/lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt +1 -1
- data/lib/generators/authentication/templates/controllers/html/emails_controller.rb.tt +29 -0
- data/lib/generators/authentication/templates/controllers/html/password_resets_controller.rb.tt +6 -6
- data/lib/generators/authentication/templates/controllers/html/passwords_controller.rb.tt +4 -4
- data/lib/generators/authentication/templates/mailers/email_mailer.rb.tt +6 -0
- data/lib/generators/authentication/templates/mailers/password_mailer.rb.tt +5 -1
- data/lib/generators/authentication/templates/views/cancellations/new.html.erb.tt +2 -2
- data/lib/generators/authentication/templates/views/email_mailer/changed.html.erb.tt +11 -0
- data/lib/generators/authentication/templates/views/email_mailer/changed.text.erb.tt +9 -0
- data/lib/generators/authentication/templates/views/emails/edit.html.erb.tt +37 -0
- data/lib/generators/authentication/templates/views/password_mailer/changed.html.erb.tt +7 -0
- data/lib/generators/authentication/templates/views/password_mailer/changed.text.erb.tt +5 -0
- data/lib/generators/authentication/templates/views/password_mailer/reset.html.erb.tt +2 -2
- data/lib/generators/authentication/templates/views/password_mailer/reset.text.erb.tt +2 -2
- data/lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt +3 -1
- data/lib/generators/authentication/templates/views/password_resets/new.html.erb.tt +1 -1
- data/lib/generators/authentication/templates/views/passwords/edit.html.erb.tt +1 -1
- data/lib/generators/authentication/templates/views/sessions/new.html.erb.tt +1 -1
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f9beaffb78e2f198c9276df8dda0a72f8029b55cd7d5b282aeb5c30b9abe02e
|
4
|
+
data.tar.gz: 2f7fb5ced42bde9126bae2a876ce58127e0b1ad27f4b6fbf8b675656ea557873
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a6602f790b8e9da67546b711df55b9e6e196d22bf06b12dfa8a2c84359d1d21d77a22a28d8eec4c06208ff2d27090c93e2c034e1d5e859370552886d518ffe6
|
7
|
+
data.tar.gz: 9535c89a33b6b0f8bfc50a8b5039a989b68e3204fdbca48f2501ba13d84cab77a9ef737329f0adf874a1f1b53694c0452aafe1ef5278f93df59198cf28286bf9
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -31,11 +31,15 @@ Add these lines to your `app/views/home/index.html.erb`:
|
|
31
31
|
<p>Signed as <%= Current.user.email %></p>
|
32
32
|
|
33
33
|
<div>
|
34
|
-
<%= link_to "Change
|
34
|
+
<%= link_to "Change email", edit_emails_path %>
|
35
35
|
</div>
|
36
36
|
|
37
37
|
<div>
|
38
|
-
<%= link_to "
|
38
|
+
<%= link_to "Change password", edit_passwords_path %>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div>
|
42
|
+
<%= link_to "Cancel my account & delete my data", new_cancellations_path %>
|
39
43
|
</div>
|
40
44
|
|
41
45
|
<%= button_to "Log out", sign_out_path, method: :delete %>
|
@@ -16,11 +16,13 @@ class AuthenticationGenerator < Rails::Generators::NamedBase
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def create_mailers
|
19
|
+
template "mailers/email_mailer.rb", "app/mailers/email_mailer.rb"
|
19
20
|
template "mailers/password_mailer.rb", "app/mailers/password_mailer.rb"
|
20
21
|
end
|
21
22
|
|
22
23
|
def create_views
|
23
24
|
if options.api
|
25
|
+
directory "views/email_mailer", "app/views/email_mailer"
|
24
26
|
directory "views/password_mailer", "app/views/password_mailer"
|
25
27
|
else
|
26
28
|
directory "views", "app/views"
|
@@ -37,19 +39,15 @@ class AuthenticationGenerator < Rails::Generators::NamedBase
|
|
37
39
|
end
|
38
40
|
|
39
41
|
def add_routes
|
40
|
-
route "
|
42
|
+
route "resource :password_resets, only: [:new, :edit, :create, :update]"
|
43
|
+
route "resource :cancellations, only: [:new, :create]"
|
44
|
+
route "resource :passwords, only: [:edit, :update]"
|
45
|
+
route "resource :emails, only: [:edit, :update]"
|
46
|
+
route "delete 'sign_out', to: 'sessions#destroy'"
|
41
47
|
route "post 'sign_up', to: 'registrations#create'"
|
42
|
-
route "get '
|
48
|
+
route "get 'sign_up', to: 'registrations#new'" unless options.api?
|
43
49
|
route "post 'sign_in', to: 'sessions#create'"
|
44
|
-
route "get '
|
45
|
-
route "patch 'password', to: 'passwords#update'"
|
46
|
-
route "get 'cancellation/new', to: 'cancellations#new'" unless options.api?
|
47
|
-
route "post 'cancellation', to: 'cancellations#destroy'"
|
48
|
-
route "get 'password_reset/new', to: 'password_resets#new'" unless options.api?
|
49
|
-
route "post 'password_reset', to: 'password_resets#create'"
|
50
|
-
route "get 'password_reset/edit', to: 'password_resets#edit'"
|
51
|
-
route "patch 'password_reset', to: 'password_resets#update'"
|
52
|
-
route "delete 'sign_out', to: 'sessions#destroy'"
|
50
|
+
route "get 'sign_in', to: 'sessions#new'" unless options.api?
|
53
51
|
end
|
54
52
|
|
55
53
|
def add_application_controller_methods
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class EmailsController < ApplicationController
|
2
|
+
before_action :set_<%= singular_table_name %>
|
3
|
+
|
4
|
+
def update
|
5
|
+
if !@<%= singular_table_name %>.authenticate(params[:current_password])
|
6
|
+
render json: { error: "The current password you entered is incorrect" }, status: :bad_request
|
7
|
+
elsif @<%= singular_table_name %>.update(<%= "#{singular_table_name}_params" %>)
|
8
|
+
if @<%= singular_table_name %>.email_previously_changed?
|
9
|
+
EmailMailer.with(email_change: @<%= singular_table_name %>.email_previous_change).changed.deliver_later
|
10
|
+
end
|
11
|
+
|
12
|
+
render json: @<%= singular_table_name %>
|
13
|
+
else
|
14
|
+
render json: @<%= singular_table_name %>.errors, status: :unprocessable_entity
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
def set_<%= singular_table_name %>
|
20
|
+
@<%= singular_table_name %> = Current.<%= singular_table_name %>
|
21
|
+
end
|
22
|
+
|
23
|
+
def <%= "#{singular_table_name}_params" %>
|
24
|
+
params.permit(:email)
|
25
|
+
end
|
26
|
+
end
|
data/lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt
CHANGED
@@ -16,7 +16,7 @@ class PasswordResetsController < ApplicationController
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def update
|
19
|
-
if @<%= singular_table_name %>.update(
|
19
|
+
if @<%= singular_table_name %>.update(<%= "#{singular_table_name}_params" %>)
|
20
20
|
render json: @<%= singular_table_name %>
|
21
21
|
else
|
22
22
|
render json: @<%= singular_table_name %>.errors, status: :unprocessable_entity
|
@@ -25,12 +25,12 @@ class PasswordResetsController < ApplicationController
|
|
25
25
|
|
26
26
|
private
|
27
27
|
def set_<%= singular_table_name %>
|
28
|
-
@<%= singular_table_name %> = <%= class_name %>.find_signed!(params[:
|
28
|
+
@<%= singular_table_name %> = <%= class_name %>.find_signed!(params[:sid], purpose: "password_reset")
|
29
29
|
rescue ActiveSupport::MessageVerifier::InvalidSignature
|
30
30
|
render json: { error: "Your token has expired, please request a new one" }, status: :bad_request
|
31
31
|
end
|
32
32
|
|
33
|
-
def
|
34
|
-
params.
|
33
|
+
def <%= "#{singular_table_name}_params" %>
|
34
|
+
params.permit(:password, :password_confirmation)
|
35
35
|
end
|
36
36
|
end
|
@@ -4,7 +4,8 @@ class PasswordsController < ApplicationController
|
|
4
4
|
def update
|
5
5
|
if !@<%= singular_table_name %>.authenticate(params[:current_password])
|
6
6
|
render json: { error: "The current password you entered is incorrect" }, status: :bad_request
|
7
|
-
elsif @<%= singular_table_name %>.update(
|
7
|
+
elsif @<%= singular_table_name %>.update(<%= "#{singular_table_name}_params" %>)
|
8
|
+
PasswordMailer.with(user: @<%= singular_table_name %>).changed.deliver_later
|
8
9
|
render json: @<%= singular_table_name %>
|
9
10
|
else
|
10
11
|
render json: @<%= singular_table_name %>.errors, status: :unprocessable_entity
|
@@ -16,7 +17,7 @@ class PasswordsController < ApplicationController
|
|
16
17
|
@<%= singular_table_name %> = Current.<%= singular_table_name %>
|
17
18
|
end
|
18
19
|
|
19
|
-
def
|
20
|
-
params.
|
20
|
+
def <%= "#{singular_table_name}_params" %>
|
21
|
+
params.permit(:password, :password_confirmation)
|
21
22
|
end
|
22
23
|
end
|
@@ -13,6 +13,6 @@ class RegistrationsController < ApplicationController
|
|
13
13
|
|
14
14
|
private
|
15
15
|
def <%= "#{singular_table_name}_params" %>
|
16
|
-
params.
|
16
|
+
params.permit(:email, :password, :password_confirmation)
|
17
17
|
end
|
18
18
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
class EmailsController < ApplicationController
|
2
|
+
before_action :set_<%= singular_table_name %>
|
3
|
+
|
4
|
+
def edit
|
5
|
+
end
|
6
|
+
|
7
|
+
def update
|
8
|
+
if !@<%= singular_table_name %>.authenticate(params[:current_password])
|
9
|
+
redirect_to edit_emails_path, alert: "The current password you entered is incorrect"
|
10
|
+
elsif @<%= singular_table_name %>.update(<%= "#{singular_table_name}_params" %>)
|
11
|
+
if @<%= singular_table_name %>.email_previously_changed?
|
12
|
+
EmailMailer.with(email_change: @<%= singular_table_name %>.email_previous_change).changed.deliver_later
|
13
|
+
end
|
14
|
+
|
15
|
+
redirect_to root_path, notice: "Your email has been changed successfully"
|
16
|
+
else
|
17
|
+
render :edit, status: :unprocessable_entity
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
def set_<%= singular_table_name %>
|
23
|
+
@<%= singular_table_name %> = Current.<%= singular_table_name %>
|
24
|
+
end
|
25
|
+
|
26
|
+
def <%= "#{singular_table_name}_params" %>
|
27
|
+
params.require(:<%= singular_table_name %>).permit(:email)
|
28
|
+
end
|
29
|
+
end
|
data/lib/generators/authentication/templates/controllers/html/password_resets_controller.rb.tt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class PasswordResetsController < ApplicationController
|
2
2
|
skip_before_action :authenticate
|
3
3
|
|
4
|
-
before_action :set_<%= singular_table_name %>, only: %i[ edit update ]
|
4
|
+
before_action :set_<%= singular_table_name %>, only: %i[ edit update ]
|
5
5
|
|
6
6
|
def new
|
7
7
|
end
|
@@ -14,12 +14,12 @@ class PasswordResetsController < ApplicationController
|
|
14
14
|
PasswordMailer.with(<%= singular_table_name %>: @<%= singular_table_name %>).reset.deliver_later
|
15
15
|
redirect_to sign_in_path, notice: "You will receive an email with instructions on how to reset your password in a few minutes"
|
16
16
|
else
|
17
|
-
redirect_to
|
17
|
+
redirect_to new_password_resets_path, alert: "The email address doesn't exist in our database"
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
def update
|
22
|
-
if @<%= singular_table_name %>.update(
|
22
|
+
if @<%= singular_table_name %>.update(<%= "#{singular_table_name}_params" %>)
|
23
23
|
redirect_to sign_in_path, notice: "Your password was reset successfully. Please sign in"
|
24
24
|
else
|
25
25
|
render :edit, status: :unprocessable_entity
|
@@ -28,12 +28,12 @@ class PasswordResetsController < ApplicationController
|
|
28
28
|
|
29
29
|
private
|
30
30
|
def set_<%= singular_table_name %>
|
31
|
-
@<%= singular_table_name %> = <%= class_name %>.find_signed!(params[:
|
31
|
+
@<%= singular_table_name %> = <%= class_name %>.find_signed!(params[:sid], purpose: "password_reset")
|
32
32
|
rescue ActiveSupport::MessageVerifier::InvalidSignature
|
33
|
-
redirect_to
|
33
|
+
redirect_to new_password_resets_path, alert: "Your token has expired, please request a new one"
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def <%= "#{singular_table_name}_params" %>
|
37
37
|
params.require(:<%= singular_table_name %>).permit(:password, :password_confirmation)
|
38
38
|
end
|
39
39
|
end
|
@@ -2,13 +2,13 @@ class PasswordsController < ApplicationController
|
|
2
2
|
before_action :set_<%= singular_table_name %>
|
3
3
|
|
4
4
|
def edit
|
5
|
-
@<%= singular_table_name %> = Current.<%= singular_table_name %>
|
6
5
|
end
|
7
6
|
|
8
7
|
def update
|
9
8
|
if !@<%= singular_table_name %>.authenticate(params[:current_password])
|
10
|
-
redirect_to
|
11
|
-
elsif @<%= singular_table_name %>.update(
|
9
|
+
redirect_to edit_passwords_path, alert: "The current password you entered is incorrect"
|
10
|
+
elsif @<%= singular_table_name %>.update(<%= "#{singular_table_name}_params" %>)
|
11
|
+
PasswordMailer.with(user: @<%= singular_table_name %>).changed.deliver_later
|
12
12
|
redirect_to root_path, notice: "Your password has been changed successfully"
|
13
13
|
else
|
14
14
|
render :edit, status: :unprocessable_entity
|
@@ -20,7 +20,7 @@ class PasswordsController < ApplicationController
|
|
20
20
|
@<%= singular_table_name %> = Current.<%= singular_table_name %>
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
23
|
+
def <%= "#{singular_table_name}_params" %>
|
24
24
|
params.require(:<%= singular_table_name %>).permit(:password, :password_confirmation)
|
25
25
|
end
|
26
26
|
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
class PasswordMailer < ApplicationMailer
|
2
|
+
def changed
|
3
|
+
mail to: params[:<%= singular_table_name %>].email
|
4
|
+
end
|
5
|
+
|
2
6
|
def reset
|
3
|
-
@
|
7
|
+
@signed_id = params[:<%= singular_table_name %>].signed_id(purpose: "password_reset", expires_in: 20.minutes)
|
4
8
|
mail to: params[:<%= singular_table_name %>].email
|
5
9
|
end
|
6
10
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<h1>Want to close your account?</h1>
|
2
2
|
|
3
|
-
<p>Your account will be immediately closed. You won
|
3
|
+
<p>Your account will be immediately closed. You won't be able to sign in anymore.</p>
|
4
4
|
<p>Your data will be permanently deleted from our servers.</p>
|
5
5
|
<p><%%= link_to "Back", root_path %></p>
|
6
6
|
|
7
7
|
<br>
|
8
8
|
|
9
9
|
<div>
|
10
|
-
<%%= button_to "OK, close my account",
|
10
|
+
<%%= button_to "OK, close my account", cancellations_path %>
|
11
11
|
</div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<p>Hey there,</p>
|
2
|
+
|
3
|
+
<p>We just wanted to confirm that your email address has been updated.</p>
|
4
|
+
|
5
|
+
<p><strong>Before, it was: <%%= @previous_email %></strong></p>
|
6
|
+
|
7
|
+
<p><strong>Now it is set to: <%%= @current_email %></strong></p>
|
8
|
+
|
9
|
+
<hr>
|
10
|
+
|
11
|
+
<p>If you didn't make this change, someone else may have access to your account. If you think that may be the case, please reply to this email and our support team will help you out.</p>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Hey there,
|
2
|
+
|
3
|
+
We just wanted to confirm that your email address has been updated.
|
4
|
+
|
5
|
+
Before, it was: <%%= @previous_email %>
|
6
|
+
|
7
|
+
Now it is set to: <%%= @current_email %>
|
8
|
+
|
9
|
+
If you didn't make this change, someone else may have access to your account. If you think that may be the case, please reply to this email and our support team will help you out.
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<p style="color: red"><%%= alert %></p>
|
2
|
+
|
3
|
+
<h1>Change your email</h1>
|
4
|
+
|
5
|
+
<%%= form_with(model: @<%= model_resource_name %>, url: emails_path) do |form| %>
|
6
|
+
<%% if @<%= singular_table_name %>.errors.any? %>
|
7
|
+
<div style="color: red">
|
8
|
+
<h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
|
9
|
+
|
10
|
+
<ul>
|
11
|
+
<%% @<%= singular_table_name %>.errors.each do |error| %>
|
12
|
+
<li><%%= error.full_message %></li>
|
13
|
+
<%% end %>
|
14
|
+
</ul>
|
15
|
+
</div>
|
16
|
+
<%% end %>
|
17
|
+
|
18
|
+
<div>
|
19
|
+
<%%= label_tag :current_password, nil, style: "display: block" %>
|
20
|
+
<%%= password_field_tag :current_password, nil, autofocus: true, autocomplete: "current-password" %>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div>
|
24
|
+
<%%= form.label :email, "New email", style: "display: block" %>
|
25
|
+
<%%= form.email_field :email %>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<div>
|
29
|
+
<%%= form.submit "Save changes" %>
|
30
|
+
</div>
|
31
|
+
<%% end %>
|
32
|
+
|
33
|
+
<br>
|
34
|
+
|
35
|
+
<div>
|
36
|
+
<%%= link_to "Back", root_path %>
|
37
|
+
</div>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<p>Hey there,</p>
|
2
|
+
|
3
|
+
<p>We just wanted to confirm that your password has been updated.</p>
|
4
|
+
|
5
|
+
<hr>
|
6
|
+
|
7
|
+
<p>If you didn't make this change, someone else may have access to your account. If you think that may be the case, please reply to this email and our support team will help you out.</p>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<p>Hey there,</p>
|
2
2
|
|
3
|
-
<p>Can
|
3
|
+
<p>Can't remember your password for <strong><%%= params[:<%= singular_table_name %>].email %></strong>? That's OK, it happens. Just hit the link below to set a new one.</p>
|
4
4
|
|
5
|
-
<p><%%= link_to "Reset my password",
|
5
|
+
<p><%%= link_to "Reset my password", edit_password_resets_url(sid: @signed_id) %></p>
|
6
6
|
|
7
7
|
<p>If you did not request a password reset you can safely ignore this email, it expires in 20 minutes. Only someone with access to this email account can reset your password.</p>
|
8
8
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Hey there,
|
2
2
|
|
3
|
-
Can
|
3
|
+
Can't remember your password for <%%= params[:<%= singular_table_name %>].email %>? That's OK, it happens. Just hit the link below to set a new one.
|
4
4
|
|
5
|
-
[Reset my password]<%%=
|
5
|
+
[Reset my password]<%%= edit_password_resets_url(sid: @signed_id) %>
|
6
6
|
|
7
7
|
If you did not request a password reset you can safely ignore this email, it expires in 20 minutes. Only someone with access to this email account can reset your password.
|
8
8
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<h1>Reset your password</h1>
|
2
2
|
|
3
|
-
<%%= form_with(model: @<%= model_resource_name %>, url:
|
3
|
+
<%%= form_with(model: @<%= model_resource_name %>, url: password_resets_path) do |form| %>
|
4
4
|
<%% if @<%= singular_table_name %>.errors.any? %>
|
5
5
|
<div style="color: red">
|
6
6
|
<h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
|
@@ -13,6 +13,8 @@
|
|
13
13
|
</div>
|
14
14
|
<%% end %>
|
15
15
|
|
16
|
+
<%%= hidden_field_tag :sid, params[:sid] %>
|
17
|
+
|
16
18
|
<div>
|
17
19
|
<%%= form.label :password, "New password", style: "display: block" %>
|
18
20
|
<%%= form.password_field :password, autofocus: true, autocomplete: "new-password" %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<h1>Forgot your password?</h1>
|
4
4
|
|
5
|
-
<%%= form_with(url:
|
5
|
+
<%%= form_with(url: password_resets_path) do |form| %>
|
6
6
|
<div>
|
7
7
|
<%%= form.label :email, style: "display: block" %>
|
8
8
|
<%%= form.email_field :email, autofocus: true, required: true %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<h1>Change your password</h1>
|
4
4
|
|
5
|
-
<%%= form_with(model: @<%= model_resource_name %>, url:
|
5
|
+
<%%= form_with(model: @<%= model_resource_name %>, url: passwords_path) do |form| %>
|
6
6
|
<%% if @<%= singular_table_name %>.errors.any? %>
|
7
7
|
<div style="color: red">
|
8
8
|
<h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authentication-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -32,20 +32,28 @@ files:
|
|
32
32
|
- lib/generators/authentication/USAGE
|
33
33
|
- lib/generators/authentication/authentication_generator.rb
|
34
34
|
- lib/generators/authentication/templates/controllers/api/cancellations_controller.rb.tt
|
35
|
+
- lib/generators/authentication/templates/controllers/api/emails_controller.rb.tt
|
35
36
|
- lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt
|
36
37
|
- lib/generators/authentication/templates/controllers/api/passwords_controller.rb.tt
|
37
38
|
- lib/generators/authentication/templates/controllers/api/registrations_controller.rb.tt
|
38
39
|
- lib/generators/authentication/templates/controllers/api/sessions_controller.rb.tt
|
39
40
|
- lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt
|
41
|
+
- lib/generators/authentication/templates/controllers/html/emails_controller.rb.tt
|
40
42
|
- lib/generators/authentication/templates/controllers/html/password_resets_controller.rb.tt
|
41
43
|
- lib/generators/authentication/templates/controllers/html/passwords_controller.rb.tt
|
42
44
|
- lib/generators/authentication/templates/controllers/html/registrations_controller.rb.tt
|
43
45
|
- lib/generators/authentication/templates/controllers/html/sessions_controller.rb.tt
|
46
|
+
- lib/generators/authentication/templates/mailers/email_mailer.rb.tt
|
44
47
|
- lib/generators/authentication/templates/mailers/password_mailer.rb.tt
|
45
48
|
- lib/generators/authentication/templates/migration.rb.tt
|
46
49
|
- lib/generators/authentication/templates/models/current.rb.tt
|
47
50
|
- lib/generators/authentication/templates/models/resource.rb.tt
|
48
51
|
- lib/generators/authentication/templates/views/cancellations/new.html.erb.tt
|
52
|
+
- lib/generators/authentication/templates/views/email_mailer/changed.html.erb.tt
|
53
|
+
- lib/generators/authentication/templates/views/email_mailer/changed.text.erb.tt
|
54
|
+
- lib/generators/authentication/templates/views/emails/edit.html.erb.tt
|
55
|
+
- lib/generators/authentication/templates/views/password_mailer/changed.html.erb.tt
|
56
|
+
- lib/generators/authentication/templates/views/password_mailer/changed.text.erb.tt
|
49
57
|
- lib/generators/authentication/templates/views/password_mailer/reset.html.erb.tt
|
50
58
|
- lib/generators/authentication/templates/views/password_mailer/reset.text.erb.tt
|
51
59
|
- lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt
|