pentacent / keila

Open Source Newsletter Tool.
https://keila.io
GNU Affero General Public License v3.0
1.45k stars 81 forks source link

Allow creating users from administer users page #284

Closed doobry-systemli closed 2 weeks ago

doobry-systemli commented 7 months ago

Trying out the official keila Docker image, I didn't find a way to add new users when logged in as root user. The web interface only lists the sole user, without any options to add/edit/delete users:

grafik

Do I miss something? Or is user management somehow disabled in the official Docker image?

wmnnd commented 7 months ago

Hey, thank you for your question! You can’t currently create new users on this page. You can register new users at /auth/register

doobry-systemli commented 7 months ago

Oh, I see. So there is no option to disable user registration but at the same time manage users as the admin user?

doobry-systemli commented 7 months ago

We're thinking about running a keila instance for activist projects, but open registration is no option for us. So we'd envision a setup where our admin user can add new users manually on request and these users can maintain their campaigns and contact sets.

wmnnd commented 7 months ago

You can quite easily accomplish this via the console at the moment before this feature will eventually be added.

Open the console like this in the container:

/opt/app/bin/keila remote

Then execute the following command:

Keila.Auth.create_user(%{email: "user@example.com", password: "secure-password-123"})
wmnnd commented 6 months ago

I’ve updated the title of the issue and added it to the roadmap. We should add a feature to create new users from the admin page.

wmnnd commented 2 weeks ago

This has now been implemented by @pmareke! 🥳