Cannot login with newly created admin account
Description
I ran the Mix command to create a user (mobilizon.users.new
) on my local test instance (uses docker-compose
). The command is successful but then I am unable to log in using these credentials.
Steps to Reproduce
$ git log --oneline -1
a4b41efe (HEAD, tag: 1.0.3) Merge branch '1.0.3' into 'master'
$ docker-compose up --force-recreate --build -d
[...]
$ docker-compose exec api mix mobilizon.users.new "admin@test.com" --admin --password "password"
14:31:49.112 [info] Using environment configuration for Docker
14:31:50.700 [info] Source for database :city not found: "priv/data/GeoLite2-City.mmdb"
14:31:51.221 [debug] QUERY OK source="actors" db=0.9ms queue=1.3ms idle=176.1ms
SELECT a0."id", a0."url", a0."outbox_url", a0."inbox_url", a0."following_url", a0."followers_url", a0."shared_inbox_url", a0."members_url", a0."resources_url", a0."posts_url", a0."events_url", a0."todos_url", a0."discussions_url", a0."type", a0."name", a0."domain", a0."summary", a0."preferred_username", a0."keys", a0."manually_approves_followers", a0."openness", a0."visibility", a0."suspended", a0."last_refreshed_at", a0."avatar", a0."banner", a0."user_id", a0."physical_address_id", a0."inserted_at", a0."updated_at" FROM "actors" AS a0 WHERE (a0."url" = $1) ["http://mobilizon.me/@anonymous"]
14:31:51.418 [debug] QUERY OK db=9.4ms queue=2.8ms idle=363.3ms
INSERT INTO "actors" ("followers_url","following_url","inbox_url","keys","manually_approves_followers","name","openness","outbox_url","preferred_username","shared_inbox_url","summary","suspended","type","url","visibility","inserted_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17) RETURNING "id" ["http://mobilizon.me/@anonymous/followers", "http://mobilizon.me/@anonymous/following", "http://mobilizon.me/@anonymous/inbox", "[REDACTED]", false, "Mobilizon Anonymous Actor", "moderated", "http://mobilizon.me/@anonymous/outbox", "anonymous", "http://mobilizon.me/inbox", "A fake person for anonymous participations", false, "Person", "http://mobilizon.me/@anonymous", "private", ~N[2020-12-30 14:31:51], ~N[2020-12-30 14:31:51]]
14:31:51.813 [debug] QUERY OK db=3.3ms queue=0.9ms idle=767.6ms
INSERT INTO "users" ("confirmed_at","disabled","email","locale","password_hash","role","inserted_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id" [~U[2020-12-30 14:31:51Z], false, "admin@test.com", "en", "$argon2id$v=19$m=131072,t=8,p=4$cdFQLANUn8dDOztb5y8X2g$Aa2p2fYxReNnDLm6+izF6mOo3V/p4QCCI6Q+mzmz5zc", "administrator", ~N[2020-12-30 14:31:51], ~N[2020-12-30 14:31:51]]
14:31:51.825 [debug] QUERY OK db=4.1ms queue=0.7ms idle=780.9ms
INSERT INTO "feed_tokens" ("token","user_id","inserted_at") VALUES ($1,$2,$3) [<<179, 96, 30, 24, 137, 60, 78, 194, 131, 182, 3, 72, 5, 76, 202, 149>>, 1, ~N[2020-12-30 14:31:51]]
An user has been created with the following information:
- email: admin@test.com
- password: password
- Role: administrator
The user will be prompted to create a new profile after login for the first time.
Then on http://localhost:4000/login :
Expected behaviour:
I expect to be able to log in using admin@test.com
and password
Actual behaviour:
Cannot log in.
Reproduces how often:
Reproduces every time.
Versions
- Mobilizon version 1.0.3
- using docker
- host OS: Ubuntu 20.04
- Browser: Firefox 84.0