Description
- Gitea version (or commit ref): v1.9.3
- Operating system: n/a
- Database (use
[x]
): n/a - Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist: n/a
Description
For centrally administrated installations, it might be desirable to disable password resets via email (which bypasses any 2FA) and instead require the admin to do that through the admin interface or via the terminal.
Currently, the only solution to achieve that seems to be to disable the mailer completely, which in turn disables other useful features like notifications.
Hence, it would be great to add a config.ini
option similar to DISABLE_REGISTRATION
, e.g. DISABLE_EMAIL_PASSWORD_RESET
(default value false
).
I think the required changes are relatively limited, mainly adding the option here:
and checking for the new option in addition to setting.MailService
here:
I currently don't have a dev setup for gitea to implement that and send a PR, so if somebody else wants to pick this up that'd be great - however I can also give it a try if the backlog is already too full.
Great project overall btw, keep on the good work.