Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 18:56:11 +01:00
forgejo/models
derSuessmann 51d578ff33 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.
2017-01-08 11:12:03 +08:00
..
fixtures Unit tests for models/access.go (#606) 2017-01-08 11:10:53 +08:00
migrations Restrict creating organisations by user (#193) 2016-12-31 10:33:30 +08:00
access.go Fix SQL bug in models/access (#583) 2017-01-05 08:57:54 +08:00
access_test.go Unit tests for models/access.go (#606) 2017-01-08 11:10:53 +08:00
action.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
admin.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
error.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
git_diff.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
git_diff_test.go fix gofmt error 2016-12-30 20:41:10 +01:00
graph.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
graph_test.go Fix benchmarktests (#557) 2017-01-03 10:52:09 +08:00
issue.go Merge pull request #555 from ethantkoenig/tests/pull 2017-01-06 19:19:18 -02:00
issue_comment.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
issue_label.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
issue_mail.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
lfs.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
login_source.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
mail.go Implement sendmail (#355) 2016-12-25 14:55:22 +01:00
models.go Update xorm and dependencies vendor for feature to dump to other database (#565) 2017-01-03 16:20:28 +08:00
models_sqlite.go go vet 2014-04-13 03:14:43 -04:00
models_test.go #3442 add test suites 2016-08-12 02:56:50 -07:00
models_tidb.go Remove go version from build tags (#133) 2016-11-10 08:43:49 -02:00
notification.go Merge pull request #539 from andreynering/notifications-step-2 2017-01-05 11:53:01 -02:00
org.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
org_team.go rename all uID -> userID on models/org_team.go 2016-11-28 16:33:08 +08:00
pull.go Merge pull request #555 from ethantkoenig/tests/pull 2017-01-06 19:19:18 -02:00
pull_test.go Unit tests for models/pull.go 2017-01-06 10:08:23 -05:00
release.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
repo.go API endpoint for subscribers (#598) 2017-01-07 11:13:02 +08:00
repo_branch.go Lint models/repo_branch.go 2016-11-26 11:20:37 +01:00
repo_collaboration.go API Endpoints for collaborators (#375) 2016-12-26 15:37:01 +08:00
repo_editor.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
repo_mirror.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
repo_test.go fixed test build error 2016-11-25 16:02:10 +08:00
setup_for_test.go Unit tests for models/access.go (#606) 2017-01-08 11:10:53 +08:00
ssh_key.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
ssh_key_test.go Update import paths from github.com/go-gitea to code.gitea.io (#135) 2016-11-10 17:24:48 +01:00
star.go API endpoint for stargazers (#597) 2017-01-06 15:05:09 +08:00
token.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
token_test.go Unit tests for token and update models 2016-12-31 10:17:45 +01:00
update.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
update_test.go Unit tests for token and update models 2016-12-31 10:17:45 +01:00
user.go Add Keep email private (see issue #571). (#571) 2017-01-08 11:12:03 +08:00
user_mail.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
webhook.go Create missing database indexes (#596) 2017-01-06 23:14:33 +08:00
webhook_slack.go Fix typos in models/ (#576) 2017-01-05 08:50:34 +08:00
wiki.go In the wiki title replace tab with a space (#371) 2016-12-11 11:01:26 +08:00