DVinyl icon indicating copy to clipboard operation
DVinyl copied to clipboard

[Feature]: Signup token requirement

Open Mellow1238 opened this issue 3 weeks ago • 5 comments

Before suggesting

  • [x] I searched the existing issues and did not find a similar request.

What problem would this solve?

Define a specific token/code required for users to input when signing up to the webapp

How could it work?

Set a variable such as SIGNUP_TOKEN="XXXXXXXXXX"

Then instead of the instance admin manually creating user accounts, there would be an available signup page for new users that requires them to enter the signup token before creating an account. A similar system is employed in matrix homeservers.

Alternatives you considered

Would you like to help build it?

Can help with testing

Mellow1238 avatar Nov 10 '26 12:11 Mellow1238

Hey! Thanks for the suggestion :D

DVinyl actually has no public sign-up: accounts can only be created by an admin from the admin page, or through SSO if you set it up (and that can be limited to a group). So nobody can create an account on their own.

Were you maybe thinking of the very first setup page, the one that creates the admin account on a fresh install? If so, protecting it with a token while the instance is still empty does make sense, and I can add that. Thanks!

Kyonew avatar Nov 10 '26 12:11 Kyonew

Hey! Thanks for the suggestion :D

DVinyl actually has no public sign-up: accounts can only be created by an admin from the admin page, or through SSO if you set it up (and that can be limited to a group). So nobody can create an account on their own.

Were you maybe thinking of the very first setup page, the one that creates the admin account on a fresh install? If so, protecting it with a token while the instance is still empty does make sense, and I can add that. Thanks!

Will there eventually be a public signup page available? If so a token for that would be useful also.

Mellow1238 avatar Nov 11 '26 07:11 Mellow1238

Hey! No public sign-up page is planned: DVinyl is meant for you and the people you choose, so I'd rather not have an open door, even one behind a token.

But your idea gave me a better one :D 4.0.0 will have 'invite links'. A collection admin creates a link from the Members tab, picks a role (viewer, editor or admin) and how long it stays valid (1, 7 or 30 days), then sends it to someone. That person opens it, picks their own username and password, and lands straight in the collection. If they already have an account, they just sign in and join with it. Each link works only once and can be deleted at any time.

The SETUP_TOKEN for the first-run setup page is in 4.0.0 too.

I'll let you know when it's out so you can try it, thanks for the idea!

Kyonew avatar Nov 11 '26 12:11 Kyonew

Hey! No public sign-up page is planned: DVinyl is meant for you and the people you choose, so I'd rather not have an open door, even one behind a token.

But your idea gave me a better one :D 4.0.0 will have 'invite links'. A collection admin creates a link from the Members tab, picks a role (viewer, editor or admin) and how long it stays valid (1, 7 or 30 days), then sends it to someone. That person opens it, picks their own username and password, and lands straight in the collection. If they already have an account, they just sign in and join with it. Each link works only once and can be deleted at any time.

The SETUP_TOKEN for the first-run setup page is in 4.0.0 too.

I'll let you know when it's out so you can try it, thanks for the idea!

This seems a good option as well, invite links should be just fine if not more usable for some people.

Mellow1238 avatar Nov 11 '26 12:11 Mellow1238

Hi! 4.0.0 is out with invite links (Members tab: role, 1/7/30 days, single use) and SETUP_TOKEN for the first setup. Thanks for the idea!

Kyonew avatar Nov 15 '26 17:11 Kyonew