card-mod-account 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/set/abstract/account_holder.rb +1 -1
- data/set/right/account/views.rb +4 -4
- data/set/right/account.rb +4 -2
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a0d5402c82a124a66eb06050e1ed1568850dc86631e19ac940636b5bed60aae
|
4
|
+
data.tar.gz: 9464fa45a61845dcc62a52b6206aa1ff8accf8c38c62a5e133ff97c93054b355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ebe98ad01d8b3452af57978f69c17c35f8a22adbfc40dd20b72307afd4bb0847bfc9fd798f3ef98c2c12b339f7bfaaff9f2b32cf83162a532ab1c9f0b62715f
|
7
|
+
data.tar.gz: 0c1a6e2c9dc977d1fca4fd5df3cfe3e5368dc53c5fbac56e4f70318de0c1995cea0b59d3b00b960e4658daa5aebe7beab38744adbbd0976d817fc1456011e52d
|
data/set/right/account/views.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
format do
|
2
|
-
view :verify_url, cache: :never do
|
2
|
+
view :verify_url, cache: :never, denial: :blank do
|
3
3
|
raise Error::PermissionDenied unless card.ok?(:create) || card.action
|
4
4
|
|
5
5
|
token_url :verify_and_activate, anonymous: true
|
6
6
|
end
|
7
7
|
|
8
|
-
view :reset_password_url do
|
8
|
+
view :reset_password_url, denial: :blank do
|
9
9
|
raise Error::PermissionDenied unless card.password_card.ok? :update
|
10
10
|
|
11
11
|
token_url :reset_password
|
12
12
|
end
|
13
13
|
|
14
|
-
view :token_expiry do
|
14
|
+
view :token_expiry, denial: :blank do
|
15
15
|
"(#{token_expiry_sentence}"
|
16
16
|
end
|
17
17
|
|
18
|
-
view :token_days do
|
18
|
+
view :token_days, denial: :blank do
|
19
19
|
Card.config.token_expiry / 1.day
|
20
20
|
end
|
21
21
|
|
data/set/right/account.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
|
3
|
-
delegate :own_account?, to: :accounted
|
4
|
-
|
5
3
|
card_accessor :email
|
6
4
|
card_accessor :password
|
7
5
|
card_accessor :salt
|
@@ -9,6 +7,10 @@ card_accessor :status
|
|
9
7
|
|
10
8
|
require_field :email
|
11
9
|
|
10
|
+
def own_account?
|
11
|
+
accounted&.try :own_account?
|
12
|
+
end
|
13
|
+
|
12
14
|
def accounted
|
13
15
|
left
|
14
16
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-account
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,84 +18,84 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.108.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.
|
28
|
+
version: 1.108.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-email
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.18.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.18.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: card-mod-permissions
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.18.0
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
56
|
+
version: 0.18.0
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: card-mod-list
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.18.0
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.
|
70
|
+
version: 0.18.0
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: card-mod-integrate
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.18.0
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - '='
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
84
|
+
version: 0.18.0
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: card-mod-edit
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - '='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.18.0
|
92
92
|
type: :runtime
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - '='
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
98
|
+
version: 0.18.0
|
99
99
|
description: ''
|
100
100
|
email:
|
101
101
|
- info@decko.org
|
@@ -144,7 +144,7 @@ files:
|
|
144
144
|
- set/type_plus_right/user/email.rb
|
145
145
|
homepage: https://decko.org
|
146
146
|
licenses:
|
147
|
-
- GPL-3.0
|
147
|
+
- GPL-3.0-or-later
|
148
148
|
metadata:
|
149
149
|
source_code_uri: https://github.com/decko-commons/decko
|
150
150
|
homepage_uri: https://decko.org
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubygems_version: 3.5.
|
171
|
+
rubygems_version: 3.5.7
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Email-based account handling for decko cards
|