Skip to content
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

Allowing one user only to use #297

Closed
ifvictr opened this issue Dec 23, 2016 · 14 comments
Closed

Allowing one user only to use #297

ifvictr opened this issue Dec 23, 2016 · 14 comments
Labels
enhancement Wants to improvide an existing feature vote wanted

Comments

@ifvictr
Copy link

ifvictr commented Dec 23, 2016

I'm hosting my own HackMD, and I don't want any other people to sign up on it. This means that non-registered people will only be able to read public notes, and nothing else (not even sign up). Would this be possible to implement?

@ifvictr ifvictr changed the title Allowing only one user Allowing one user only to use Dec 23, 2016
@jackycute
Copy link
Member

you can set email to false and allowanonymous to false to disable ability to signin and guest usage.
but you also won't able to do anything, so register first then disable later.

@ifvictr
Copy link
Author

ifvictr commented Dec 23, 2016

@jackycute If HMD_EMAIL is set to false, that will also prevent myself from signing in, which renders the app unusable. I have disabled all external logins also.

@jackycute
Copy link
Member

Oh yes, you won't able to signin.

@jackycute
Copy link
Member

Actually I'm wondering how many people need this.

@ifvictr
Copy link
Author

ifvictr commented Dec 23, 2016

I'm suggesting separating the email login and registration functionalities, because right now, they're bound together. By separating, we could achieve what you mentioned earlier. Temporarily email registration to register yourself and disabling it later will solve this problem.

@jackycute
Copy link
Member

We need to consider about backwards capability, it's not ok to change current exist config.
But adding a disableemailregister is fine.

@jackycute
Copy link
Member

To keep the config naming consistency, will use allowemailregister instead.

Also if anyone need this enhancement please +1 or comment.

@jackycute jackycute added enhancement Wants to improvide an existing feature help wanted We want you to help us with this! vote wanted and removed help wanted We want you to help us with this! labels Dec 23, 2016
@ccoenen
Copy link
Contributor

ccoenen commented Dec 28, 2016

I find this to be somewhat related to #272

@jackycute jackycute added this to the 0.5.1 milestone Jan 12, 2017
@jackycute
Copy link
Member

Please check if this issue solved in #317

@jackycute
Copy link
Member

@ifvictr Hi, do you read us?

@ifvictr
Copy link
Author

ifvictr commented Jan 24, 2017

@jackycute Sorry I didn't see this earlier, I usually unsubscribe from repos I don't own, so I didn't get the notification (I only get them when @mentioned). Anyways, I tested it, and it works perfectly! Thanks! 😄

@ifvictr ifvictr closed this as completed Jan 24, 2017
@jackycute
Copy link
Member

No problem!

@youngcraft
Copy link

in docker ,How to config my docker-compose?? limit one user to use

@Aincvy
Copy link

Aincvy commented May 20, 2020

in docker ,How to config my docker-compose?? limit one user to use

Maybe this can help.

environment:
  - CMD_ALLOW_ANONYMOUS=false
  - CMD_ALLOW_EMAIL_REGISTER=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Wants to improvide an existing feature vote wanted
Projects
None yet
Development

No branches or pull requests

5 participants