Skip to content

Commit a99a479

Browse files
committed
docs: new cookie configs
1 parent db626c1 commit a99a479

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/configuration/password.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Supported fields:
3838
The hash should be generated using PHP's [`password_hash`](https://www.php.net/manual/en/function.password-hash.php) function.
3939
You can generate one using the following command or use an online generator.
4040
```bash
41-
php -r "echo password_hash('foobar', PASSWORD_DEFAULT);"
41+
php -r "echo password_hash('foobar', PASSWORD_ARGON2ID);"
4242
```
4343

4444
![](password1.png)
@@ -104,7 +104,7 @@ The entire dir-browser instance can be protected with a global password using [b
104104

105105
import EnvConfig from '@site/src/components/EnvConfig';
106106

107-
<EnvConfig name="PASSWORD_USER|PASSWORD_RAW|PASSWORD_HASH" init="<empty>|<empty>|<empty>" values="<string>|<string>|<hash>" desc="Username|Plaintext password|Hash of a password. See definition above." versions="3.3|3.3|3.3"/>
107+
<EnvConfig name="PASSWORD_USER|PASSWORD_RAW|PASSWORD_HASH|AUTH_COOKIE_LIFETIME|AUTH_COOKIE_HTTPONLY" init="<empty>|<empty>|<empty>|604800|true" values="<string>|<string>|<hash>|seconds|bool" desc="Username|Plaintext password|Hash of a password. See definition above.|Lifetime of authentication cookie|Cookie HttpOnly flag" versions="3.3|3.3|3.3|4.2|4.2"/>
108108

109109
:::warning
110110
If `PASSWORD_USER` is set then either `PASSWORD_RAW` or `PASSWORD_HASH` is required.

0 commit comments

Comments
 (0)