Closed gebi closed 8 months ago
Hello @gebi, thank you for bringing this up!
This is not a bug, but a feature (maybe not the best one). It should be stated in a clearer way, but in fact the credentials you are filling in .env
file are meant for the Root Admin. The actual Users need to be registered using the Signup form (<GRIMOIRE_URL>/signup
).
Perhaps the initial User should be created alongside the Root Admin. Would it be more intuitive (Admins and Users are strictly separated and do not share any features, even use different DB tables)?
oh, ok... i got it working with creating a new user with /signup
, strange but ok :).
Having an initial user would be nice, ack especially for testing it out locally.
i've no idea what a root admin is or should do, i tried the docker compose internal 172er ip on port 80 with path /_/
(http://172.18.0.2/_/#/login
where i then get a pocketbase admin sign-in) but there too i just get a invalid credentials
with a 400 bad request on POST to http://172.18.0.2/api/admins/auth-with-password
Payload {identity: "MY-EMAIL", password: "MY-PASSWORD"}
Response {"code":400,"message":"Failed to authenticate.","data":{}}
i'm really sorry to nag you with that but i just wanted to quickly try out grimoire locally with the suggested docker compose method.
Admins have their designated dashboard (under <GRIMOIRE_URL>/admin
), but atm their role is focused around changing the configuration of PocketBase (like setting backups, SMTP etc.). If you cannot log in with the credentials you specified in the .env
file, maybe the first migration did proceed with the default values?
If that's the case, please try it again with email admin@grimoire.localhost
and password changeme
.
no idea what happened i just got this error below.
anyway, i've inserted the bcrypt from the user
table in pb_data/data.db
to _admin
table and now the expected pw works.
grimoire | status: 400,
grimoire | response: { code: 400, message: 'Failed to authenticate.', data: {} },
grimoire | isAbort: false,
grimoire | originalError: {
grimoire | url: 'http://pocketbase/api/admins/auth-with-password',
grimoire | status: 400,
grimoire | data: { code: 400, message: 'Failed to authenticate.', data: {} }
grimoire | }
but creating an initial admin and bookmark user and some description to which URL the login works would be awesome :)!
Describe the bug
docker-compose up
"install" produces non working instance, no idea how to login when all i get isIncorrect credentials.
To Reproduce Steps to reproduce the behavior:
git clone https://github.com/goniszewski/grimoire
.env
docker compose up
.env
Expected behavior be able to login with the email/pw defined in
.env
Screenshots
Desktop (please complete the following information):