README update

main
root 2023-10-17 14:44:18 +02:00
parent 73bd0f460c
commit bdf2c92951
2 changed files with 10 additions and 3 deletions

View File

@ -38,16 +38,23 @@ virsh net-start bridged
virsh net-autostart bridged
```
## Create Database for user
## Database for users
A default Database is provided in the git (db.db.admin_example), the default user is admin / admin.
To use this database, just change the name from db.db.admin_example to db.db.
If you want to create this database by yourself, you can :
### Create Database for users
```sh
sqlite3 db.db
CREATE TABLE user (id INTEGER PRIMARY KEY AUTOINCREMENT, username NVARCHAR(200) NULL, email NVARCHAR(200) NULL, password NVARCHAR(200) NULL;
CREATE TABLE user (id INTEGER PRIMARY KEY AUTOINCREMENT, username NVARCHAR(200) NULL, email NVARCHAR(200) NULL, password NVARCHAR(200) NULL);
```
## Create first user
### Create first user
1 - Generate encrypted password :

BIN
db.db.admin_example 100644

Binary file not shown.