diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-12-01 09:15:51 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-12-08 12:10:38 +0100 |
commit | a5681a4b850b198107d025213c5c8d26cd5634d2 (patch) | |
tree | 93f875c2b3ff79f2e0b7a4ed46550ccbbc2264c0 /ogcp/cfg/ogcp.json | |
parent | f70d90ba32a66a67dfe6f19dd23de007bacb1a8d (diff) |
Add multi user support
It is inspired by the following example:
https://github.com/maxcountryman/flask-login/blob/c760c0ef7ccc95d49b4693200245a4f2b148d41b/README.md#usage
Diffstat (limited to 'ogcp/cfg/ogcp.json')
-rw-r--r-- | ogcp/cfg/ogcp.json | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ogcp/cfg/ogcp.json b/ogcp/cfg/ogcp.json index 66a5304..b5f3606 100644 --- a/ogcp/cfg/ogcp.json +++ b/ogcp/cfg/ogcp.json @@ -2,6 +2,14 @@ "IP": "127.0.0.1", "PORT": 8888, "API_TOKEN": "c3fe7bb0395747ec42a25df027585871", - "USER": "user", - "PASS": "pass" + "USERS": [ + { + "USER": "admin", + "PASS": "pass" + }, + { + "USER": "user", + "PASS": "pass" + } + ] } |