diff options
author | Jiri Vlasak <jiri.hubacek@gmail.com> | 2020-12-20 02:31:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 20:31:06 -0500 |
commit | d7c67a9fb255cfb95876d72cd9fd79247d33f5ef (patch) | |
tree | a9b6e7721e874ecff2ec4cc3f0fbceb009f48e05 /custom/conf/app.example.ini | |
parent | 36bd5d70cd390d59d1440b2e68bd3170d6af7ca2 (diff) | |
download | gitea-d7c67a9fb255cfb95876d72cd9fd79247d33f5ef.tar.gz gitea-d7c67a9fb255cfb95876d72cd9fd79247d33f5ef.zip |
Manually approve new registration (#13083)
* Add register manual confirm settings option
The new settings option is used when manually approving new
registrations.
* Enable manual confirmation of new registered user
When manual registration confirmation is desired (by default `false`)
create new user in the database that is *not active*. The user must then
be activated manually.
This change speeds up the process of adding new confirmed users for
Gitea instances without external auth mechanism. (Currently the option
is to manually create new user by admin.)
* Update docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'custom/conf/app.example.ini')
-rw-r--r-- | custom/conf/app.example.ini | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 6a4e0ca02f..1e77ff2706 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -597,6 +597,8 @@ ACTIVE_CODE_LIVE_MINUTES = 180 RESET_PASSWD_CODE_LIVE_MINUTES = 180 ; Whether a new user needs to confirm their email when registering. REGISTER_EMAIL_CONFIRM = false +; Whether a new user needs to be confirmed manually after registration. (Requires `REGISTER_EMAIL_CONFIRM` to be disabled.) +REGISTER_MANUAL_CONFIRM = false ; List of domain names that are allowed to be used to register on a Gitea instance ; gitea.io,example.com EMAIL_DOMAIN_WHITELIST = |