mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-24 09:03:15 -05:00
[GH-ISSUE #6109] Invited user signup while new user signup is disabled - Cannot easily access signup page when there is no SMTP #11154
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anhyzer5525 on GitHub (Jul 28, 2025).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/6109
Prerequisites
Vaultwarden Support String
Your environment (Generated via diagnostics page)
Config & Details (Generated via diagnostics page)
Show Config & Details
Config:
Vaultwarden Build Version
1.34.2
Deployment method
Official Container Image
Custom deployment method
No response
Reverse Proxy
haproxy 2.9.14-7c591d5
Host/Server Operating System
Linux
Operating System Version
Ubuntu 24.04
Clients
Web Vault
Client Version
2025.7.0
Steps To Reproduce
Expected Result
Expected behavior without SMTP functionality:
Actual Result
No signup link on login page is present and the only way to access the signup page is by modifying the URL in your browser. The URL looks like https://yourdomainname.com/#/signup
Logs
Screenshots or Videos
Additional Context
No response
@stefan0xC commented on GitHub (Jul 28, 2025):
Well, I kinda disagree that this should be the case because when signup is disabled that means that random visitors should not see the form and thus the link should not be shown by the client due to a server setting. For this to work we would have to tell the client that the setting
disableUserRegistrationshould befalseeven though we have actually disabled it.0db4b00007/src/api/core/mod.rs (L227-L229)While technically we could change this so this also takes into account if mail is disabled and invitations are allowed as to make an exception for that case (because in general this should stay disabled if mail is enabled because then an invitation link is sent), I do think that adding the correct URI fragment to the URL (
/#/signup) is easy enough that the current behavior does not need to be changed.Maybe we could add a page in the wiki for a better documentation because there are a few others things that don't work if mail is disabled.
@anhyzer5525 commented on GitHub (Jul 28, 2025):
I see your point here as well and I would agree in most situations. I also agree documentation is always the right answer.
Trying to run vaultwarden where you don't have an SMTP server makes things challenging to say the least as a few features either do not work at all or you have to go about things in a different way just to accomplish something that would normally be easy to do like adding(inviting) a user, or inviting a user into an organization.
I will say that when new signups are disabled, it does properly give an error and does not allow you to continue if you attempt to create an account that was not invited. I would think that would be enough to make it clear to any normal person that they are not allowed to signup. I see the point of just removing the link all together to prevent bot spamming or automated command injection preventions.
The reason why I raised the issue is this completely makes it inaccessible to all but the most knowledgeable people to figure out how to get to the signup page by manually manipulating the browser URL. I mean it took me all of 5 to 10 minutes to figure it out myself but what about the non-tech people that barely know what they are doing to begin with.
What about this suggestion: If SMTP and new signups are both disable, allow the admin from the admin pages the ability to create accounts and set the initial master password. Then upon initial login the account must set a new master password before they are allowed to save anything into their vaults. Maybe this could be a requirement as well before they are allowed to join any organization within vaultwarden as well.
Not trying to lower the security stance but at least make things a bit easier on both the end user and the administrators.
I hope this all makes sense and sorry for the long-winded response.
@BlackDex commented on GitHub (Jul 28, 2025):
You can't set an initial password via the admin unless you create the account fully your self.
Another option would be to not hide that link if smtp is also disabled.
@stefan0xC commented on GitHub (Jul 29, 2025):
I think it's easier to hide the link via CSS if you don't want it shown than it is to display it if it has been disabled.
0db4b00007/src/static/templates/scss/vaultwarden.scss.hbs (L129-L131)Maybe we could even simplify that by adding a custom css class to the link in the web-vault to make hiding it easier.