files.com 1.0.301 → 1.0.302
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/Site.md +1 -0
- package/docs/models/User.md +3 -0
- package/lib/models/User.js +7 -0
- package/package.json +1 -1
- package/src/models/User.js +7 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.302
|
package/docs/models/Site.md
CHANGED
package/docs/models/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?
|
@@ -466,6 +468,7 @@ await user.update({
|
|
466
468
|
"public_keys_count": 1,
|
467
469
|
"receive_admin_alerts": true,
|
468
470
|
"require_2fa": "always_require",
|
471
|
+
"require_login_by": "2000-01-01T01:00:00Z",
|
469
472
|
"active_2fa": true,
|
470
473
|
"require_password_change": true,
|
471
474
|
"password_expired": true,
|
package/lib/models/User.js
CHANGED
@@ -322,6 +322,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
322
322
|
(0, _defineProperty2.default)(this, "setRequire2fa", function (value) {
|
323
323
|
_this.attributes.require_2fa = value;
|
324
324
|
});
|
325
|
+
// date-time # Require user to login by specified date otherwise it will be disabled.
|
326
|
+
(0, _defineProperty2.default)(this, "getRequireLoginBy", function () {
|
327
|
+
return _this.attributes.require_login_by;
|
328
|
+
});
|
329
|
+
(0, _defineProperty2.default)(this, "setRequireLoginBy", function (value) {
|
330
|
+
_this.attributes.require_login_by = value;
|
331
|
+
});
|
325
332
|
// boolean # Is 2fa active for the user?
|
326
333
|
(0, _defineProperty2.default)(this, "getActive2fa", function () {
|
327
334
|
return _this.attributes.active_2fa;
|
package/package.json
CHANGED
package/src/models/User.js
CHANGED
@@ -313,6 +313,13 @@ class User {
|
|
313
313
|
this.attributes.require_2fa = value
|
314
314
|
}
|
315
315
|
|
316
|
+
// date-time # Require user to login by specified date otherwise it will be disabled.
|
317
|
+
getRequireLoginBy = () => this.attributes.require_login_by
|
318
|
+
|
319
|
+
setRequireLoginBy = value => {
|
320
|
+
this.attributes.require_login_by = value
|
321
|
+
}
|
322
|
+
|
316
323
|
// boolean # Is 2fa active for the user?
|
317
324
|
getActive2fa = () => this.attributes.active_2fa
|
318
325
|
|