-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] The possibility to disable new sign ups. #1592
Comments
@AmruthPillai Hello, Thank you for looking into it and implementing it! |
Just out of curiosity, are you creating accounts with email or GitHub/Google? When the env variable is set to true, it would basically show an alert on the register page that signups are disabled and also hides the email signup flow. I tested it on the production instance too and works as expected, probably might need to pull and restart the services so that the new variables get refreshed. |
I have disabled both google and github.
I am also attaching pictures of the login page, no alert. |
Hello! Did you maybe find anything wrong with my config? |
@ektorasdj @AmruthPillai When NODE_ENV=production, the default environment variables during build time are not overridden by subsequent environment variable settings. I confirmed this behavior by adding ENV VITE_DISABLE_SIGNUPS="true" in the dockerfile during the Build Image stage. However, when I set NODE_ENV=development, setting VITE_DISABLE_SIGNUPS="true" in docker-compose also works normally. |
@AmruthPillai Same issue here. VITE_DISABLE_SIGNUPS: true |
@AmruthPillai i think based on the Vite limitation on only supporting build time variables, this should be exposed as a backend query. So at runtime the client should query the backend on whether or not sign up are allowed. |
Hi @AmruthPillai, thank you for this app! |
For me, I just need to git clone this project, and then add the VITE_DISABLE_SIGNUPS="true" environment variable during the build stage in the Dockerfile. After using this modified Dockerfile to build the image, I can disable signup when NODE_ENV=production. Dockerfile example...
# --- Build Image ---
FROM base AS build
ENV NX_CLOUD_ACCESS_TOKEN=$NX_CLOUD_ACCESS_TOKEN
ENV VITE_DISABLE_SIGNUPS="true"
COPY .npmrc package.json pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY . .
RUN pnpm run build
... |
Any update on this? It's completely unusable if we can't disable public account creation. |
…S and DISABLE_EMAIL_AUTH, renamed STORAGE_SKIP_BUCKET_CHECK
Is there an existing issue for this feature?
Feature Description
Hello and thank you for this great tool!
In reactive resume v3 i was able to stop new sign ups by using the env variable PUBLIC_FLAG_DISABLE_SIGNUPS=true (That way i could avoid unwanted users creating accounts).
Its not possible in version 4 right now.
I will really appriciate if you find some time to implement this in reactive resume v4.
Thank you!
The text was updated successfully, but these errors were encountered: