mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
allow custom pocketbase login data
This commit is contained in:
@@ -9,6 +9,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./pb/data:/pb/pb_data
|
- ./pb/data:/pb/pb_data
|
||||||
restart: no
|
restart: no
|
||||||
|
environment:
|
||||||
|
# These are only needed at first start. These are the values used to login to the admin panel.
|
||||||
|
# If left empty the email will be set to test@example.com and the password to 1234567890
|
||||||
|
#- EMAIL=
|
||||||
|
#- PASSWORD=
|
||||||
bot:
|
bot:
|
||||||
depends_on:
|
depends_on:
|
||||||
pocketbase:
|
pocketbase:
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ migrate(app => {
|
|||||||
|
|
||||||
let record = new Record(superusers)
|
let record = new Record(superusers)
|
||||||
|
|
||||||
|
const email = process.env.EMAIL ?? 'text@example.com'
|
||||||
|
const password = process.env.PASSWORD ?? '1234567890'
|
||||||
|
|
||||||
// This should be communicated to the user, or be set by the user.
|
// This should be communicated to the user, or be set by the user.
|
||||||
record.set("email", "test@example.com")
|
record.set("email", "test@example.com")
|
||||||
record.set("password", "1234567890")
|
record.set("password", "1234567890")
|
||||||
Reference in New Issue
Block a user