php-censor/docs/en/configuring.md

21 lines
900 B
Markdown
Raw Normal View History

2016-07-19 13:05:02 +02:00
Configuring PHP Censor
2017-01-04 13:22:20 +01:00
======================
2016-07-19 11:12:28 +02:00
The PHP Censor configuration on the server is automatically generated into the `config.yml` file during installation.
One might need to also edit the file manually.
2016-07-17 16:20:35 +02:00
For example, one could log into PHP Censor and go into the settings to disable it. But if you have already set up a
username/password pair and have forgotten the password, and if the server is on a local network, and it's not sending
the `forgot password` email, then editing the config file manually would be handy. To do so, just edit the `php-censor`
section in the config file (which is in [yaml format](https://en.wikipedia.org/wiki/YAML)), and add
2016-07-17 16:20:35 +02:00
```yml
php-censor:
security:
disable_auth: true
default_user_id: 1
```
2016-07-17 16:20:35 +02:00
where you can get the `default_user_id` by logging into the database and selecting your user ID from the `users` table in
the PHP Censor database.