Codimd: Allowing one user only to use

Created on 23 Dec 2016  路  14Comments  路  Source: hackmdio/codimd

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?

enhancement vote wanted

Most helpful comment

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

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

All 14 comments

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.

@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.

Oh yes, you won't able to signin.

Actually I'm wondering how many people need this.

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.

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

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

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

I find this to be somewhat related to https://github.com/hackmdio/hackmd/issues/272

Please check if this issue solved in #317

@ifvictr Hi, do you read us?

@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! :smile:

No problem!

in docker 锛孒ow to config my docker-compose?? limit one user to use

in docker 锛孒ow to config my docker-compose?? limit one user to use

Maybe this can help.

environment:
  - CMD_ALLOW_ANONYMOUS=false
  - CMD_ALLOW_EMAIL_REGISTER=false
Was this page helpful?
0 / 5 - 0 ratings

Related issues

nitwhiz picture nitwhiz  路  4Comments

mxmo0rhuhn picture mxmo0rhuhn  路  3Comments

ccoenen picture ccoenen  路  4Comments

ccoenen picture ccoenen  路  4Comments

SISheogorath picture SISheogorath  路  4Comments