# Nemesis ## Password Hash Migration Passwords are now stored using PHP's `password_hash`. Existing plaintext passwords must be converted before using the new login logic. Run the migration script: ```bash php scripts/hash_passwords.php ``` This will hash every password that isn't already hashed. ======= ## Configuration The application requires access to a MySQL database. Credentials can be provided either through environment variables or through a `config.php` file placed at the project root (next to this README). ### Environment variables - `DB_HOST` - database host - `DB_USER` - database user - `DB_PASS` - database password - `DB_NAME` - database name If these variables are not set, `model/BDD.PHP` will attempt to load the same keys from `config.php`. Example `config.php`: ```php 'localhost', 'DB_USER' => 'root', 'DB_PASS' => '', 'DB_NAME' => 'nemesis', ]; ```