This commit is contained in:
Milos Stojanovic
2019-06-18 16:07:18 +02:00
parent fff29ef124
commit 310da23496
5 changed files with 27 additions and 38 deletions

View File

@@ -1,5 +1,20 @@
## Default Auth service
By default, users are stored in json file. For some use-cases, this is more than enough. It also makes this app lightweight since no database is required.
Default handler accepts only file name parameter. This file should be writable by the server.
```
'Filegator\Services\Auth\AuthInterface' => [
'handler' => '\Filegator\Services\Auth\Adapters\JsonFile',
'config' => [
'file' => __DIR__.'/private/users.json',
],
],
```
## Configuring Auth service to use database
You can store your users inside mysql database (default is json file).
You can use mysql database to store your users.
First, create a table ```users``` with this sql:
```
@@ -39,3 +54,4 @@ At the end, open ```configuration.php``` and update Auth handler under section `
],
```
Don't forget to enter correct mysql username, password, and database.

View File

@@ -18,7 +18,7 @@ You can add additional html to the head and body like this:
```
## Frontend tweaks
To change default color scheme and other options, edit ```/frontend/App.vue``` and recompile with npm.
To change default color scheme and other options, edit ```/frontend/App.vue```. When you're done, recompile with ```npm run build```.
```
// Primary color