authentication-zero 2.9.1 → 2.9.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/authentication_zero/version.rb +1 -1
- data/lib/generators/authentication/templates/erb/identity/password_resets/edit.html.erb.tt +2 -2
- data/lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt +3 -3
- data/lib/generators/authentication/templates/erb/registrations/new.html.erb.tt +2 -2
- data/lib/generators/authentication/templates/erb/sessions/sudos/new.html.erb.tt +1 -1
- data/lib/generators/authentication/templates/test_unit/system/sessions_test.rb.tt +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eb8eb320cf8198e9afebf59fd2365b2683e3b52840d8d455876a11b208e243c
|
4
|
+
data.tar.gz: 3bc190759683e6e647a597bdb57e09e69243901a3390c401e09eac72ada96726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c2996c6cf6779c22442f7155025bb99a470f26a0dc23218aea96f413fd5ae85a1ffdebd796922b77a09f60a833c4a0bb72bc9e964f5c0695066cf4074c3f4e9
|
7
|
+
data.tar.gz: 8cbf3eb8525e08fc10a5c00a88e1a82d928a107c969e7b6f4e65789d0db1d79b3a19369331f914b5baf439230a6b0e246287f6875f1f4ab7d57c4f470e96c0a0
|
data/Gemfile.lock
CHANGED
@@ -17,13 +17,13 @@
|
|
17
17
|
|
18
18
|
<div>
|
19
19
|
<%%= form.label :password, "New password", style: "display: block" %>
|
20
|
-
<%%= form.password_field :password, autofocus: true, autocomplete: "new-password" %>
|
20
|
+
<%%= form.password_field :password, required: true, autofocus: true, autocomplete: "new-password" %>
|
21
21
|
<div>12 characters minimum.</div>
|
22
22
|
</div>
|
23
23
|
|
24
24
|
<div>
|
25
25
|
<%%= form.label :password_confirmation, "Confirm new password", style: "display: block" %>
|
26
|
-
<%%= form.password_field :password_confirmation, autocomplete: "new-password" %>
|
26
|
+
<%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password" %>
|
27
27
|
</div>
|
28
28
|
|
29
29
|
<div>
|
@@ -17,18 +17,18 @@
|
|
17
17
|
|
18
18
|
<div>
|
19
19
|
<%%= label_tag :current_password, nil, style: "display: block" %>
|
20
|
-
<%%= password_field_tag :current_password, nil, autofocus: true, autocomplete: "current-password" %>
|
20
|
+
<%%= password_field_tag :current_password, nil, required: true, autofocus: true, autocomplete: "current-password" %>
|
21
21
|
</div>
|
22
22
|
|
23
23
|
<div>
|
24
24
|
<%%= form.label :password, "New password", style: "display: block" %>
|
25
|
-
<%%= form.password_field :password, autocomplete: "new-password" %>
|
25
|
+
<%%= form.password_field :password, required: true, autocomplete: "new-password" %>
|
26
26
|
<div>12 characters minimum.</div>
|
27
27
|
</div>
|
28
28
|
|
29
29
|
<div>
|
30
30
|
<%%= form.label :password_confirmation, "Confirm new password", style: "display: block" %>
|
31
|
-
<%%= form.password_field :password_confirmation, autocomplete: "new-password" %>
|
31
|
+
<%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password" %>
|
32
32
|
</div>
|
33
33
|
|
34
34
|
<div>
|
@@ -20,13 +20,13 @@
|
|
20
20
|
|
21
21
|
<div>
|
22
22
|
<%%= form.label :password, style: "display: block" %>
|
23
|
-
<%%= form.password_field :password, autocomplete: "new-password" %>
|
23
|
+
<%%= form.password_field :password, required: true, autocomplete: "new-password" %>
|
24
24
|
<div>12 characters minimum.</div>
|
25
25
|
</div>
|
26
26
|
|
27
27
|
<div>
|
28
28
|
<%%= form.label :password_confirmation, style: "display: block" %>
|
29
|
-
<%%= form.password_field :password_confirmation, autocomplete: "new-password" %>
|
29
|
+
<%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password" %>
|
30
30
|
</div>
|
31
31
|
|
32
32
|
<div>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<%%= hidden_field_tag :proceed_to_url, params[:proceed_to_url] %>
|
8
8
|
|
9
9
|
<div>
|
10
|
-
<%%= password_field_tag :password, nil, autofocus: true, autocomplete: "current-password" %>
|
10
|
+
<%%= password_field_tag :password, nil, required: true, autofocus: true, autocomplete: "current-password" %>
|
11
11
|
</div>
|
12
12
|
|
13
13
|
<div>
|
@@ -21,6 +21,13 @@ class SessionsTest < ApplicationSystemTestCase
|
|
21
21
|
assert_text "Signed in successfully"
|
22
22
|
end
|
23
23
|
|
24
|
+
test "signing out" do
|
25
|
+
sign_in_as @<%= singular_table_name %>
|
26
|
+
|
27
|
+
click_on "Log out"
|
28
|
+
assert_text "That session has been logged out"
|
29
|
+
end
|
30
|
+
|
24
31
|
def sign_in_as(<%= singular_table_name %>)
|
25
32
|
visit sign_in_url
|
26
33
|
fill_in :email, with: <%= singular_table_name %>.email
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authentication-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|