Dan6erbond / share-me

An image and video hosting platform for your server, with rich embed support and API.
https://dan6erbond.github.io/share-me/
MIT License
145 stars 10 forks source link

A method to disable sign-ups? #4

Closed Entheologian closed 1 year ago

Entheologian commented 1 year ago

Is there a method to disable sign-ups?

Thanks,

Dan6erbond commented 1 year ago

Yes, as per the README you can disable user sign-ups by going to the users table in PocketBase and going to the authentication settings to disable username/email authentication. This will also hide the sign-up button and page in the frontend.

Entheologian commented 1 year ago

My bad, I should have been more clear. What I meant to ask is if there is a way to still require the login, but to disable the sign-up link. This way only users I create can login, without anonymous access.

Dan6erbond commented 1 year ago

Ah, yes, it would theoretically be possible if you go to the users collection settings, and remove the "create" rule so that it's admins only. But the frontend doesn't have any checks for that, so the sign-up links and page would still show up. I'll open this issue to add an environment variable for SIGNUP_ENABLED.