beyond-all-reason / teiserver

Middleware server for online gaming
https://www.beyondallreason.info/
MIT License
50 stars 47 forks source link

Fix local setup documentation for root user #234

Closed darcymiranda closed 5 months ago

darcymiranda commented 5 months ago

At some point this broke because get_user_by_email/1 is now returning a map (cached user) instead of the user ecto struct. Let's just use the general functions provided by Ecto to fetch the root user.

jauggy commented 5 months ago

I tested this and can confirm that the docs are wrong and this update fixes it.