authentication-zero 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
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
@@ -8,6 +8,7 @@ class EmailsController < ApplicationController
|
|
8
8
|
if @<%= singular_table_name %>.email_previously_changed?
|
9
9
|
EmailMailer.with(email_change: @<%= singular_table_name %>.email_previous_change).changed.deliver_later
|
10
10
|
end
|
11
|
+
|
11
12
|
render json: @<%= singular_table_name %>
|
12
13
|
else
|
13
14
|
render json: @<%= singular_table_name %>.errors, status: :unprocessable_entity
|
@@ -11,6 +11,7 @@ class EmailsController < ApplicationController
|
|
11
11
|
if @<%= singular_table_name %>.email_previously_changed?
|
12
12
|
EmailMailer.with(email_change: @<%= singular_table_name %>.email_previous_change).changed.deliver_later
|
13
13
|
end
|
14
|
+
|
14
15
|
redirect_to root_path, notice: "Your email has been changed successfully"
|
15
16
|
else
|
16
17
|
render :edit, status: :unprocessable_entity
|