From 504427381163c5ee475c92ca4e0b109d0afa84af Mon Sep 17 00:00:00 2001 From: Bernd Date: Sat, 25 Jan 2025 23:45:23 +0500 Subject: [PATCH] an addition to readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6be8094..2fdb0b7 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,13 @@ mysql -u other_user -p some_empty_database < sql/schema.sql ## How to create an admin account Let's assume that your desired password is "adminpass123" and login is "admin". First, we should generate a hash for your password: -```php -r "echo password_hash('adminpass123', PASSWORD_BCRYPT) . PHP_EOL;"``` +``` +php -r "echo password_hash('adminpass123', PASSWORD_BCRYPT) . PHP_EOL;" +``` Copy the hash and put it to the `users` table in DB: -```mysql -u other_user -p some_empty_database``` +``` +mysql -u other_user -p some_empty_database +``` ```sql INSERT INTO users (username, password_hash) VALUES ('admin', 'hash_value');