X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/b0d7e17277d6b5ec5b9110542ec7945848c1241a..e9b6d76a51c3fb14ce5a88ecc1198887270b7622:/lib/config.original.php diff --git a/lib/config.original.php b/lib/config.original.php index 1f2e8b7..c666d03 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -222,3 +222,29 @@ $cfg['debug'] = false; * Set to 0 to remove limitation. */ $cfg['max_upload_chunk_size_bytes'] = 100000000; // 100MB + +/* Set password requirement policy for downloading files + * Possible values: + * optional (default): Password may be set by the uploader, but is not mandatory + * required: Setting a password is mandatory to upload a file. + * generated: Passwords are automatically generated and shown to the uploader, when uploading a file + */ +$cfg['download_password_requirement'] = 'optional'; + +/* Set length of generated passwords + */ +$cfg['download_password_gen_len'] = 10; + +/* Set allowed chars for password generation + */ +$cfg['download_password_gen_chars'] = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&*()_-=+;:,.?'; +/* Set password complexity policy for downloading files + * possible values: + * none (default): Passwords for downloading files can be of arbitrary complexity + * regex: Passwords are checked with a regex for complexity constraints + */ +$cfg['download_password_policy'] = 'none'; +/* Set the regex for regex download password policy + * Delimiters are need, but modifiers should not be used + */ +$cfg['download_password_policy_regex'] = '/.*/';