[GH-ISSUE #516] How can I create user? #325

Closed
opened 2026-03-03 01:28:01 +03:00 by kerem · 5 comments
Owner

Originally created by @lukasmrtvy on GitHub (Jun 28, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/516

How can I create user if I am running bitwarden_rs with SIGNUPS_ALLOWED=false and
INVITATIONS_ALLOWED=false ?
Should I run it without SIGNUPS_ALLOWED=false, create user and then ..with admin panel disable signups?

Originally created by @lukasmrtvy on GitHub (Jun 28, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/516 How can I create user if I am running bitwarden_rs with `SIGNUPS_ALLOWED=false` and `INVITATIONS_ALLOWED=false` ? Should I run it without `SIGNUPS_ALLOWED=false`, create user and then ..with admin panel disable signups?
kerem closed this issue 2026-03-03 01:28:01 +03:00
Author
Owner

@dani-garcia commented on GitHub (Jun 28, 2019):

That's probably the way to go yeah. If you leave invitations open, you can also invite yourself from the admin panel, without keeping signups open to everyone.

<!-- gh-comment-id:506864888 --> @dani-garcia commented on GitHub (Jun 28, 2019): That's probably the way to go yeah. If you leave invitations open, you can also invite yourself from the admin panel, without keeping signups open to everyone.
Author
Owner

@lukasmrtvy commented on GitHub (Aug 6, 2019):

@dani-garcia something like:
BW_EMAIL and BW_PASSWORD/BW_GENERATE_PASSWORD env variables would be superusefull to create initial admin user.
Thanks

<!-- gh-comment-id:518567788 --> @lukasmrtvy commented on GitHub (Aug 6, 2019): @dani-garcia something like: `BW_EMAIL` and `BW_PASSWORD/BW_GENERATE_PASSWORD` env variables would be superusefull to create initial admin user. Thanks
Author
Owner

@dani-garcia commented on GitHub (Aug 6, 2019):

The problem with that is we would have to implement the password hashing and encryption key creation, which at the moment is entirely done on the client.

Another option to make sure the server is not exposed to the web before being configured is starting it with ROCKET_ADDRESS=localhost, which would only accept connections from the local machine.

<!-- gh-comment-id:518684183 --> @dani-garcia commented on GitHub (Aug 6, 2019): The problem with that is we would have to implement the password hashing and encryption key creation, which at the moment is entirely done on the client. Another option to make sure the server is not exposed to the web before being configured is starting it with ROCKET_ADDRESS=localhost, which would only accept connections from the local machine.
Author
Owner

@lukasmrtvy commented on GitHub (Aug 6, 2019):

And what about generating some unique URL, which will provide one click registration. ( It can be sent to mail, if SMTP vars will be defined, or may be visible in /admin or in log output )

<!-- gh-comment-id:518686685 --> @lukasmrtvy commented on GitHub (Aug 6, 2019): And what about generating some unique URL, which will provide one click registration. ( It can be sent to mail, if SMTP vars will be defined, or may be visible in /admin or in log output )
Author
Owner

@dani-garcia commented on GitHub (Aug 6, 2019):

It could be a good idea, but it probably requires modifying the clients to allow sending an extra field while registering.

<!-- gh-comment-id:518690276 --> @dani-garcia commented on GitHub (Aug 6, 2019): It could be a good idea, but it probably requires modifying the clients to allow sending an extra field while registering.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#325
No description provided.