lingthio / Flask-User

Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
http://flask-user.readthedocs.io/
MIT License
1.06k stars 294 forks source link

Is there a way to specify single user only by blocking other register attempts? #295

Closed hakanu closed 4 years ago

hakanu commented 4 years ago

Thanks for the great project, really easy to use. I'm wondering if there is a way to just let first user register and then block that page fully and only let login go through.

Chaostheorie commented 4 years ago

Maybe you can alter the registering form with a check that turns False after the first registration.

hakanu commented 4 years ago

i've added a custom user manager. https://github.com/hakanu/pervane/blob/master/pervane/serve.py#L175

Closing this.