]> source.dussan.org Git - gitea.git/commit
Manually approve new registration (#13083)
authorJiri Vlasak <jiri.hubacek@gmail.com>
Sun, 20 Dec 2020 01:31:06 +0000 (02:31 +0100)
committerGitHub <noreply@github.com>
Sun, 20 Dec 2020 01:31:06 +0000 (20:31 -0500)
commitd7c67a9fb255cfb95876d72cd9fd79247d33f5ef
treea9b6e7721e874ecff2ec4cc3f0fbceb009f48e05
parent36bd5d70cd390d59d1440b2e68bd3170d6af7ca2
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>
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
integrations/mssql.ini.tmpl
integrations/mysql.ini.tmpl
integrations/mysql8.ini.tmpl
integrations/pgsql.ini.tmpl
integrations/sqlite.ini.tmpl
modules/setting/service.go
routers/user/auth.go