files.com 1.0.205 → 1.0.206
Sign up to get free protection for your applications and to get access to all the features.
- 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: e08ceccd2b0427e8ee868f98e4ca7f51e255690999e9593cb6dff7654d9b5bf0
|
4
|
+
data.tar.gz: 3f5aae71deb7604072c9ee29aa77016defad30ff81f4aa87833eec749f0879f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac8219b6d08dbe35641575bd04875c8a3d73f02dee378cce8f648deac271f6878a9df63b56fbfcacc82b661414e1574cdd8089c14054f8039914a065eefd9dc
|
7
|
+
data.tar.gz: bbafe377de8b2880f70ff91738046c2e4af924fca2d2da64ae2048f04fbd063e266cb518d0e6f2fa516a51f29f228ce5722392a4b3c194978d7b0668f1370983
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.206
|
data/docs/site.md
CHANGED
data/docs/user.md
CHANGED
@@ -41,6 +41,7 @@
|
|
41
41
|
"require_2fa": "always_require",
|
42
42
|
"active_2fa": true,
|
43
43
|
"require_password_change": true,
|
44
|
+
"password_expired": true,
|
44
45
|
"restapi_permission": true,
|
45
46
|
"self_managed": true,
|
46
47
|
"sftp_permission": true,
|
@@ -91,6 +92,7 @@
|
|
91
92
|
* `require_2fa` (string): 2FA required setting
|
92
93
|
* `active_2fa` (boolean): Is 2fa active for the user?
|
93
94
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
95
|
+
* `password_expired` (boolean): Is user's password expired?
|
94
96
|
* `restapi_permission` (boolean): Can this user access the REST API?
|
95
97
|
* `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
|
96
98
|
* `sftp_permission` (boolean): Can the user access with SFTP?
|
@@ -320,6 +320,15 @@ module Files
|
|
320
320
|
@attributes[:require_password_change] = value
|
321
321
|
end
|
322
322
|
|
323
|
+
# boolean - Is user's password expired?
|
324
|
+
def password_expired
|
325
|
+
@attributes[:password_expired]
|
326
|
+
end
|
327
|
+
|
328
|
+
def password_expired=(value)
|
329
|
+
@attributes[:password_expired] = value
|
330
|
+
end
|
331
|
+
|
323
332
|
# boolean - Can this user access the REST API?
|
324
333
|
def restapi_permission
|
325
334
|
@attributes[:restapi_permission]
|
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.206
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|