anse-app / chatgpt-demo

Minimal web UI for ChatGPT.
https://chatgpt.ddiu.me
MIT License
8.01k stars 3.8k forks source link

Can more than one password be assigned in SITE_PASSWORD? #271

Closed Root-FTW closed 1 year ago

Root-FTW commented 1 year ago

Clear and concise description of the problem

Can more than one password be assigned?

Currently you can set a password, but sometimes I want to pass my demo to several people just to test it but then no longer have access, is it possible to add more than 1 password in the SITE_PASSWORD vercel variable, so that I can delete them later?

Suggested solution

to be able to add more than 1 password in the SITE_PASSWORD vercel variable

Alternative

No response

Additional context

No response

Validations

yzh990918 commented 1 year ago

This is too customized requirements, it is recommended to fork the code yourself.

Root-FTW commented 1 year ago

Now that I think about it, I think it is impossible to add more than 1 password to the same variable, you could create a new variable for example:

SITE_PASSWORD_DEMO

And when a user visits the site, he/she will be asked for the password and can enter the SITE_PASSWORD or SITE_PASSWORD_DEMO password.

This is too customized requirements, it is recommended to fork the code yourself.

Root-FTW commented 1 year ago

you're right, too bad I don't know how to code, hahaha

Anyway thanks for replying :)

This is too customized requirements, it is recommended to fork the code yourself.

yzh990918 commented 1 year ago

Anyway, thanks for the suggestion.