diff options
author | derSuessmann <derSuessmann@users.noreply.github.com> | 2017-01-08 04:12:03 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-08 11:12:03 +0800 |
commit | 51d578ff3321e173b0dae4c80d3031fb0492656d (patch) | |
tree | 8297ce73af221f98bff148c1d7cfa7c82a0580a6 /conf | |
parent | 6072b032918006824f260e79f96372dd94fbb17f (diff) | |
download | gitea-51d578ff3321e173b0dae4c80d3031fb0492656d.tar.gz gitea-51d578ff3321e173b0dae4c80d3031fb0492656d.zip |
Add Keep email private (see issue #571). (#571)
- Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE.
- Add the new option to the install and admin/config pages.
- Add the new option to app.ini in the service section.
- Add the new option to the settings struct.
- Add English text strings to i18n.
- Add field KeepEmailPrivate to user struct.
- Add field KeepEmailPrivate to user form.
- Add option to UI.
- Add using noreply email address if user has "Keep Email Private".
An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit
messages (and hopefully all other git log relevant places). The
change relies on the fact that git commands should use
user.NetGitSig().
- Add hiding of email address in UI, if user has set "Keep Email Private".
- Add condition to show email address only on explore/users and user
pages, if user has not set "Keep Email Private".
- Add noreply email in API if set "Keep Email Private".
- Add a new service setting NO_REPLY_ADDRESS. The value of this
setting is used as the domain part for the user's email address in
git log, iff he decides to keep his email address private.
If the user decides to keep his email address private and this
option is not set 'noreply.example.org' is used, which no MTA
should send email to.
Add NO_REPLY_ADDRESS to conf/app.ini.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini index f49bdfecab..3ca64d3aa6 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -190,6 +190,13 @@ ENABLE_REVERSE_PROXY_AUTHENTICATION = false ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false ; Enable captcha validation for registration ENABLE_CAPTCHA = true +; Default value for KeepEmailPrivate +; New user will get the value of this setting copied into their profile +DEFAULT_KEEP_EMAIL_PRIVATE = false +; Default value for the domain part of the user's email address in the git log +; if he has set KeepEmailPrivate true. The user's email replaced with a +; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. +NO_REPLY_ADDRESS = noreply.example.org [webhook] ; Hook task queue length, increase if webhook shooting starts hanging |