authentication-zero 0.0.2 → 0.0.3
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/lib/authentication_zero/version.rb +1 -1
- data/lib/generators/authentication/templates/controllers/html/password_resets_controller.rb.tt +1 -1
- data/lib/generators/authentication/templates/views/html/cancellations/new.html.erb.tt +1 -1
- data/lib/generators/authentication/templates/views/html/passwords/edit.html.erb.tt +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce5e21bc2cc3d6c6918ccbad332d242cca9cfcb39118627249175e7ebb5aa87
|
4
|
+
data.tar.gz: 35e17b1191f02d6cb5a56d3225e800399ee2cff532762b9e69e407f008b07008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60910c9bd432c8b8cbfc1db6f80ac6b0f95fd8533b2662cd7972f953ef7bbba18cbc01597a301ffc1cc94a19928e092f99fd329a0007c07ff948ada0eddc6e1a
|
7
|
+
data.tar.gz: a894976b67986f247d3913da3007693ee4d0470c9916a0615d793f21b17cab8c5ef0e70c6a929bd8a35c154302ae6eba15b311d1f89b0bdc83abec4cec6c3fdb
|
data/Gemfile.lock
CHANGED
data/lib/generators/authentication/templates/controllers/html/password_resets_controller.rb.tt
CHANGED
@@ -10,7 +10,7 @@ class PasswordResetsController < ApplicationController
|
|
10
10
|
|
11
11
|
def create
|
12
12
|
if @<%= singular_table_name %> = <%= class_name %>.find_by_email(params[:email])
|
13
|
-
PasswordMailer.with(
|
13
|
+
PasswordMailer.with(<%= singular_table_name %>: @<%= singular_table_name %>).reset.deliver_later
|
14
14
|
redirect_to sign_in_path, notice: "You will receive an email with instructions on how to reset your password in a few minutes"
|
15
15
|
else
|
16
16
|
redirect_to password_reset_new_path, alert: "The email address doesn't exist in our database"
|