mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-11 10:34:00 +02:00
Merge branch 'master' of https://github.com/misterunknown/ifm
This commit is contained in:
@@ -23,7 +23,7 @@ The configuration array is located at the top of the script, so you can customiz
|
||||
Meanwhile I added a super simple authentication feature using the configuration keys `auth` and `auth_source`. You can configure it like this:
|
||||
```php
|
||||
"auth" => 1,
|
||||
"auth_source" => 'inline;admin:<password_hash>',
|
||||
"auth_source" => 'inline;<username>:<password_hash>',
|
||||
```
|
||||
In the example above the user and password are declared inline. You can also use a file (which should lie out of the $DocumentRoot of the webserver):
|
||||
```php
|
||||
@@ -31,9 +31,9 @@ In the example above the user and password are declared inline. You can also use
|
||||
```
|
||||
The file should contain ONLY ONE LINE:
|
||||
```
|
||||
admin:<password_hash>
|
||||
<username>:<password_hash>
|
||||
```
|
||||
The password hash has to be a hash generated by PHPs `password_hash()` function.
|
||||
The password hash has to be a hash generated by PHPs `password_hash()` function. The default credentials are "admin:admin".
|
||||
|
||||
|
||||
## security information
|
||||
|
Reference in New Issue
Block a user