files.com 1.1.65 → 1.1.66

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5139e9f8b682a01b9107f816f36efb008918d8b410af54e6d486c2124fe82f0
4
- data.tar.gz: e20ccd60b3da0728e46e4aa29412f9c44d07521fe4b5a2a33083adac6b02f9bf
3
+ metadata.gz: 72a7d4d9bd4394bf93df368d6fcd49f849ee50ba06bbf8912876d82b493b5407
4
+ data.tar.gz: 5df0955ad415720ff0e066e2b03b4c32e7abcb29477b4fbe0ee9e123435f7f03
5
5
  SHA512:
6
- metadata.gz: 21d9f0f2ced474aa1a770ffb97d15fe176c403652bbe66e5e97de053f77bfb657b4c0d9cfc827dc9c58f9a331305544ba23903755280c2c67ed60ac0d207111c
7
- data.tar.gz: b363969edf500438bb2729400c14cf0a58f5147b6836cd2beca39103d5cc680cda8d587df0a77f930a9483cca9fab90bc4677eaa8424b8e8aed9bcc7bcd098d8
6
+ metadata.gz: f18fc882f517d3a1731a9358be7ced500fec1a82bb7118216f0da02f37335e105fa58eb3952c605ca340477711411580d6f53be54927d66c7c46e4f2a842e6d7
7
+ data.tar.gz: '09f7412e5169f7ab14192cc043b06e1a845fe386eae1c66c5b9cc12c6957f5c29ffccf3dad08a698d456b2b3b3ae6c3436ac23836ea800ccce566304c8de3dc7'
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.65
1
+ 1.1.66
data/docs/site.md CHANGED
@@ -14,6 +14,7 @@
14
14
  "allowed_2fa_method_webauthn": true,
15
15
  "allowed_2fa_method_yubi": true,
16
16
  "allowed_2fa_method_email": true,
17
+ "allowed_2fa_method_static": true,
17
18
  "allowed_2fa_method_bypass_for_ftp_sftp_dav": true,
18
19
  "admin_user_id": 1,
19
20
  "admins_bypass_locked_subfolders": true,
@@ -286,6 +287,7 @@
286
287
  * `allowed_2fa_method_webauthn` (boolean): Is WebAuthn two factor authentication allowed?
287
288
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
288
289
  * `allowed_2fa_method_email` (boolean): Is OTP via email two factor authentication allowed?
290
+ * `allowed_2fa_method_static` (boolean): Is OTP via static codes for two factor authentication allowed?
289
291
  * `allowed_2fa_method_bypass_for_ftp_sftp_dav` (boolean): Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
290
292
  * `admin_user_id` (int64): User ID for the main site administrator
291
293
  * `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
@@ -560,6 +562,7 @@ Files::Site.update(
560
562
  allowed_2fa_method_webauthn: true,
561
563
  allowed_2fa_method_yubi: true,
562
564
  allowed_2fa_method_email: true,
565
+ allowed_2fa_method_static: true,
563
566
  allowed_2fa_method_bypass_for_ftp_sftp_dav: true,
564
567
  require_2fa: true,
565
568
  require_2fa_user_type: "`site_admins`",
@@ -707,6 +710,7 @@ Files::Site.update(
707
710
  * `allowed_2fa_method_webauthn` (boolean): Is WebAuthn two factor authentication allowed?
708
711
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
709
712
  * `allowed_2fa_method_email` (boolean): Is OTP via email two factor authentication allowed?
713
+ * `allowed_2fa_method_static` (boolean): Is OTP via static codes for two factor authentication allowed?
710
714
  * `allowed_2fa_method_bypass_for_ftp_sftp_dav` (boolean): Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
711
715
  * `require_2fa` (boolean): Require two-factor authentication for all users?
712
716
  * `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
@@ -49,6 +49,11 @@ module Files
49
49
  @attributes[:allowed_2fa_method_email]
50
50
  end
51
51
 
52
+ # boolean - Is OTP via static codes for two factor authentication allowed?
53
+ def allowed_2fa_method_static
54
+ @attributes[:allowed_2fa_method_static]
55
+ end
56
+
52
57
  # boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
53
58
  def allowed_2fa_method_bypass_for_ftp_sftp_dav
54
59
  @attributes[:allowed_2fa_method_bypass_for_ftp_sftp_dav]
@@ -905,6 +910,7 @@ module Files
905
910
  # allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
906
911
  # allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
907
912
  # allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
913
+ # allowed_2fa_method_static - boolean - Is OTP via static codes for two factor authentication allowed?
908
914
  # allowed_2fa_method_bypass_for_ftp_sftp_dav - boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
909
915
  # require_2fa - boolean - Require two-factor authentication for all users?
910
916
  # require_2fa_user_type - string - What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.65"
4
+ VERSION = "1.1.66"
5
5
  end
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.1.65
4
+ version: 1.1.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-02 00:00:00.000000000 Z
11
+ date: 2024-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable