authentication_with_registration_generator 0.3.1 → 0.3.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: febeeccd2a93042a70d9b2f3aa950e6b4481d88f5ccee985a9e038f02dfed96a
|
4
|
+
data.tar.gz: a7b2ab6ea284d15c2c85a41cce2a06eba9b0baaf72387c7c1d82437466ae6504
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6c36f2105d2c32a042e93f3b77df1c572708337208b7c1ee7282a26ec26a28b2a9014a394fbd65d582f01880cdbacfce32153ee374d72080bf0b13201fd8634
|
7
|
+
data.tar.gz: a6e87fa43c9efd1a9a09c98647c354ec80bd878353478815675c6434a6e6a7edf44c75530a1da84a536324bfbf63200b3779daa86607e0fdf2730be63bec8994
|
@@ -10,7 +10,6 @@ module Authentication
|
|
10
10
|
invoke "rails:authentication"
|
11
11
|
end
|
12
12
|
end
|
13
|
-
|
14
13
|
|
15
14
|
def create_view
|
16
15
|
template "registration_form.html.erb", "app/views/registrations/new.html.erb"
|
@@ -31,7 +30,7 @@ module Authentication
|
|
31
30
|
session_view_path = "app/views/sessions/new.html.erb"
|
32
31
|
|
33
32
|
# Check if the file exists before modifying it
|
34
|
-
if File.
|
33
|
+
if File.exist?(session_view_path)
|
35
34
|
# Replace the "Forgot password?" link with the new links
|
36
35
|
gsub_file session_view_path, /<br>\s*<%= link_to "Forgot password\?", new_password_path %>/ do |match|
|
37
36
|
"<p>\n <%= link_to 'Forgot password?', new_password_path %> | \n <%= link_to 'No Account? Register here', new_registration_path %>\n</p>"
|
data/lib/generators/version.rb
CHANGED