authentication_with_registration_generator 0.3.4 → 0.3.5
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: aa18b6a3e20786433cb62220fe16303d192eea89ee208b2dc0dc34924e94c727
|
4
|
+
data.tar.gz: c765aa2da0ed54151d88ef5236561d1f9f8810f3ee8383e2ff2bbc1b87f5ec92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96fbe4ab374e7288f7b91ccacc57c56425bd497e263af6dc126e4582db9075805089f3e4ed94777632e818bc3d3ca6dfd6eb7df9981f18aa977fa19491a2a4b7
|
7
|
+
data.tar.gz: 6fd8471e10412d6b55f4f3d1ac1d412fc25c3e27bf663d276938bdc6611a9afbe65cad0676c53e489f0046a6fb72c97c4b9b309f251b5046d22d34ec906f946c
|
@@ -48,13 +48,13 @@ module Authentication
|
|
48
48
|
def link_to_sign_in_or_out
|
49
49
|
if authenticated?
|
50
50
|
# Return the form as a string
|
51
|
-
"<form class
|
52
|
-
<input type
|
53
|
-
<button type
|
54
|
-
<input type
|
51
|
+
"<form class=\\"button_to\\" action=\\"\#{sign_out_path}\\" accept-charset=\\"UTF-8\\" method=\\"post\\">
|
52
|
+
<input type=\\"hidden\\" name=\\"_method\\" value=\\"delete\\" autocomplete=\\"off\\" />
|
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
|
-
"<a href
|
57
|
+
"<a href=\\"\#{sign_in_path}\\">Sign In</a>".html_safe
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
data/lib/generators/version.rb
CHANGED