authentication_with_registration_generator 0.3.5 → 0.3.6
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: '09af8b2c0d27ae4fd78d65f2af3c50e30beccf1449828f8fceebbcd4d1908072'
|
4
|
+
data.tar.gz: c835170056b1f728c1262334d6962dd8302a5e18e812f8f0d8c68aef37a1b6fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b67e1808f4d4ad1a3d3e77c9774c508566ce665826a9691c0a00510cc30c35ce34e4c8ebe49036d258c0e6f31f02a54eeed077647604a1fadb09cfe03861de1
|
7
|
+
data.tar.gz: e82b32cde7d17818971065f6cd224b2f196890d9143d5ea776fa2fc2bec48e801c6f7133f1beaf225805ae17f1f2cbbb32117e2fb717b20695274b2bf77b4ba6
|
@@ -33,7 +33,7 @@ module Authentication
|
|
33
33
|
if File.exist?(session_view_path)
|
34
34
|
# Replace the "Forgot password?" link with the new links
|
35
35
|
gsub_file session_view_path, /<br>\s*<%= link_to "Forgot password\?", new_password_path %>/ do |match|
|
36
|
-
"<p>\n
|
36
|
+
"<p>\n <%= link_to 'Forgot password?', new_password_path %> | \n <%= link_to 'No Account? Register here', new_registration_path %>\n</p>"
|
37
37
|
end
|
38
38
|
else
|
39
39
|
# If the file doesn't exist, handle it accordingly (e.g., raise an error or create the file)
|
@@ -50,8 +50,8 @@ module Authentication
|
|
50
50
|
# Return the form as a string
|
51
51
|
"<form class=\\"button_to\\" action=\\"\#{sign_out_path}\\" accept-charset=\\"UTF-8\\" method=\\"post\\">
|
52
52
|
<input type=\\"hidden\\" name=\\"_method\\" value=\\"delete\\" autocomplete=\\"off\\" />
|
53
|
-
<button type=\\"submit
|
54
|
-
<input type=\\"hidden
|
53
|
+
<button type=\\"submit\\">Sign Out</button>
|
54
|
+
<input type=\\"hidden\\" name=\\"authenticity_token\\" value=\\"\#{form_authenticity_token}\\" autocomplete=\\"off\\" />
|
55
55
|
</form>".html_safe
|
56
56
|
else
|
57
57
|
"<a href=\\"\#{sign_in_path}\\">Sign In</a>".html_safe
|
data/lib/generators/version.rb
CHANGED