#4972 Provide a way to disable user registration
Closed: Fixed 3 years ago by ngompa. Opened 3 years ago by sergiodj.

I just noticed there is no easy way to disable user registration, which is a bummer if you're setting up a private instance, for example. I believe this could be provided via a configuration option that defaults to False (meaning "allow user registration" by default), for example.


You can do this by setting ENABLE_USER_MNGT to False in pagure.cfg.

See https://docs.pagure.org/pagure/configuration.html#enable-user-mngt

Metadata Update from @ngompa:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

3 years ago

Actually, I just read though the code for ENABLE_USER_MNGT and it doesn't do this, so this is a valid RFE.

Metadata Update from @ngompa:
- Issue status updated to: Open (was: Closed)

3 years ago

Metadata Update from @ngompa:
- Issue tagged with: RFE

3 years ago

Metadata Update from @ngompa:
- Issue assigned to ngompa

3 years ago

Metadata Update from @ngompa:
- Issue set to the milestone: 5.12

3 years ago

Should we allow for accounts to be created by pagure-admin in these cases?

So one doesn't have to turn off/on this feature or mess with the DB to add a new account?

@pingou Probably, but I'm not sure how to make that possible...

@pingou Probably, but I'm not sure how to make that possible...

we can track in another ticket. My though is to have the user-created with a random password then have the new account go through the password recovery. The CLI could do just the first one or both, not sure what we'd prefer

That makes some sense, and yeah, should be a separate ticket.

Metadata Update from @ngompa:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #4993 Merged 3 years ago