files.com 1.0.369 → 1.0.370
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/_VERSION +1 -1
- data/docs/site.md +1 -0
- data/docs/user.md +2 -0
- data/lib/files.com/models/user.rb +9 -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: 0d2fe78953773ed28ca9092c5ac4bd98424cebe39719349b2f8da32498e9f3f3
|
|
4
|
+
data.tar.gz: 2497dc7f393eabfc34bc3a85a6c3678960e663db780d75cb0e0116701e620cef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cbba291e41dccd38391815dbf7393c5e5c3d891f32c0dec1accb9d7d0137471fdf8c1284e48ad9594388bd48f261f8781cf13c74c57df7214dcf5b09afba3849
|
|
7
|
+
data.tar.gz: ca21c9b79c0ef2a434b983cccd1aeae9a0d7afd0524a7dec8ffa2820952f9770d6edc8622418afa24f956d8765635343c27553703c398bc881b5adf5127b330d
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.370
|
data/docs/site.md
CHANGED
data/docs/user.md
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"public_keys_count": 1,
|
|
49
49
|
"receive_admin_alerts": true,
|
|
50
50
|
"require_2fa": "always_require",
|
|
51
|
+
"require_login_by": "2000-01-01T01:00:00Z",
|
|
51
52
|
"active_2fa": true,
|
|
52
53
|
"require_password_change": true,
|
|
53
54
|
"password_expired": true,
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
* `public_keys_count` (int64): Number of public keys associated with this user
|
|
111
112
|
* `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
|
|
112
113
|
* `require_2fa` (string): 2FA required setting
|
|
114
|
+
* `require_login_by` (date-time): Require user to login by specified date otherwise it will be disabled.
|
|
113
115
|
* `active_2fa` (boolean): Is 2fa active for the user?
|
|
114
116
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
|
115
117
|
* `password_expired` (boolean): Is user's password expired?
|
|
@@ -383,6 +383,15 @@ module Files
|
|
|
383
383
|
@attributes[:require_2fa] = value
|
|
384
384
|
end
|
|
385
385
|
|
|
386
|
+
# date-time - Require user to login by specified date otherwise it will be disabled.
|
|
387
|
+
def require_login_by
|
|
388
|
+
@attributes[:require_login_by]
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
def require_login_by=(value)
|
|
392
|
+
@attributes[:require_login_by] = value
|
|
393
|
+
end
|
|
394
|
+
|
|
386
395
|
# boolean - Is 2fa active for the user?
|
|
387
396
|
def active_2fa
|
|
388
397
|
@attributes[:active_2fa]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.370
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-07-
|
|
11
|
+
date: 2023-07-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|