You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models
mrsdizzie 04003d9dc7 Make distinction between DisplayName and Username in email templates (#6495)
* Make distinction between DisplayName and Username in email templates

Store the actual username in the variable named Username and store the
separate DisplayName in another variable. This allows us to access the
actual username when we need, which currently fails if a user has set a
full name.

Fixes #6161

* Use u.Name directly

No need for extra function, also change use in all mail sending
functions here

* Don't include Username when not used
5 years ago
..
fixtures Integrate OAuth2 Provider (#5378) 5 years ago
migrations fix upload attachments (#6481) 5 years ago
access.go Restrict permission check on repositories and fix some problems (#5314) 6 years ago
access_test.go Restrict permission check on repositories and fix some problems (#5314) 6 years ago
action.go Better logging (#6038) (#6095) 5 years ago
action_list.go refactor: reduce sql query in retrieveFeeds (#3547) 6 years ago
action_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
admin.go Better logging (#6038) (#6095) 5 years ago
admin_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
attachment.go fix upload attachments (#6481) 5 years ago
attachment_test.go fix upload attachments (#6481) 5 years ago
branches.go Better logging (#6038) (#6095) 5 years ago
branches_test.go Add deleted_branch table fixture (#2832) 7 years ago
consistency.go Fix activity feed (#1779) 7 years ago
error.go Integrate OAuth2 Provider (#5378) 5 years ago
error_oauth2.go gofmt (#1662) 7 years ago
external_login_user.go Add primary key and index to external login user table (#1656) 7 years ago
git_diff.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
git_diff_test.go Fix ParsePatch function to work with quoted diff --git strings (#6323) 5 years ago
gpg_key.go Better logging (#6038) (#6095) 5 years ago
gpg_key_test.go Refactor struct's time to remove unnecessary memory usage (#3142) 7 years ago
graph.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
graph_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
helper.go Add reactions to issues/PR and comments (#2856) 7 years ago
issue.go Better logging (#6038) (#6095) 5 years ago
issue_assignees.go Better logging (#6038) (#6095) 5 years ago
issue_assignees_test.go Improve performance of dashboard (#4977) 6 years ago
issue_comment.go Better logging (#6038) (#6095) 5 years ago
issue_comment_list.go Improve performance of dashboard (#4977) 6 years ago
issue_comment_test.go Pull request review/approval and comment on code (#3748) 6 years ago
issue_dependency.go fix sqlite lock (#5184) 6 years ago
issue_dependency_test.go Fix an error while adding a dependency via UI. (#5862) 5 years ago
issue_label.go Add label names as filter in issue search api (#5946) 5 years ago
issue_label_test.go Add label names as filter in issue search api (#5946) 5 years ago
issue_list.go Refactor issue indexer (#5363) 5 years ago
issue_list_test.go Shows total tracked time in issue and milestone list (#3341) 6 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 5 years ago
issue_mail.go Better logging (#6038) (#6095) 5 years ago
issue_milestone.go Better logging (#6038) (#6095) 5 years ago
issue_milestone_test.go Add more webhooks support and refactor webhook templates directory (#3929) 6 years ago
issue_reaction.go Refactor struct's time to remove unnecessary memory usage (#3142) 7 years ago
issue_reaction_test.go Ensure valid git author names passed in signatures (#5774) 6 years ago
issue_stopwatch.go Improve performance of dashboard (#4977) 6 years ago
issue_stopwatch_test.go Refactor struct's time to remove unnecessary memory usage (#3142) 7 years ago
issue_test.go Add more tests and docs for issue indexer, add db indexer type for searching from database (#6144) 5 years ago
issue_tracked_time.go Improve performance of dashboard (#4977) 6 years ago
issue_tracked_time_test.go Feature: Timetracking (#2211) 7 years ago
issue_user.go Fix sqlite deadlock when assigning to a PR (#5640) 6 years ago
issue_user_test.go Multiple assignees (#3705) 6 years ago
issue_watch.go Update xorm to latest version and fix correct `user` table referencing in sql (#4473) 6 years ago
issue_watch_test.go Hide unactive on explore users and some refactors (#2741) 7 years ago
lfs.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 5 years ago
lfs_lock.go Better logging (#6038) (#6095) 5 years ago
login_source.go fix bug when user login and want to resend register confirmation email (#6482) 5 years ago
mail.go Make distinction between DisplayName and Username in email templates (#6495) 5 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
models.go fix dump table name error and add some test for dump database (#6394) 5 years ago
models_sqlite.go fix dump table name error and add some test for dump database (#6394) 5 years ago
models_test.go fix dump table name error and add some test for dump database (#6394) 5 years ago
notification.go Fix sqlite lock (#5176) 6 years ago
notification_test.go Add 'mark all read' option to notifications (#3097) 7 years ago
oauth2.go Discord Oauth2 support (#4476) 6 years ago
oauth2_application.go Integrate OAuth2 Provider (#5378) 5 years ago
oauth2_application_test.go Integrate OAuth2 Provider (#5378) 5 years ago
org.go Better logging (#6038) (#6095) 5 years ago
org_team.go Better logging (#6038) (#6095) 5 years ago
org_team_test.go api: Add missing GET teams endpoints (#5382) 6 years ago
org_test.go Allow to set organization visibility (public, internal, private) (#1763) 5 years ago
pull.go Show last commit status in pull request lists (#6465) 5 years ago
pull_test.go Disable merging a WIP Pull request (#4529) 6 years ago
release.go Better logging (#6038) (#6095) 5 years ago
release_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
repo.go Better logging (#6038) (#6095) 5 years ago
repo_activity.go Add issue closed time column to fix activity closed issues list (#3537) 6 years ago
repo_branch.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
repo_collaboration.go Fix not removed watches on unallowed repositories (#4201) 6 years ago
repo_collaboration_test.go Unit tests for models/repo_collaboration (#1032) 7 years ago
repo_indexer.go Better logging (#6038) (#6095) 5 years ago
repo_issue.go Add EnableTimetracking option to app settings (#3719) 6 years ago
repo_list.go Allow to set organization visibility (public, internal, private) (#1763) 5 years ago
repo_list_test.go This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql (#5136) 6 years ago
repo_mirror.go Better logging (#6038) (#6095) 5 years ago
repo_permission.go Fixed unitTypeCode not being used (#6419) 5 years ago
repo_permission_test.go fix bug when update owner team then visit team's repo return 404 (#6119) 5 years ago
repo_redirect.go Redirects for renamed repos (#807) 7 years ago
repo_redirect_test.go Unit tests for repo redirects (#961) 7 years ago
repo_tag.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
repo_test.go Fix repo-transfer-and-team-repo-count bug (#3241) 7 years ago
repo_unit.go Add rebase with merge commit merge style (#3844) (#4052) 6 years ago
repo_watch.go Fix sqlite deadlock when assigning to a PR (#5640) 6 years ago
repo_watch_test.go Hide unactive on explore users and some refactors (#2741) 7 years ago
review.go Webhook for Pull Request approval/rejection (#5027) 6 years ago
review_test.go Show review summary in pull requests (#5132) 6 years ago
ssh_key.go Better logging (#6038) (#6095) 5 years ago
ssh_key_test.go Use assert in legacy unit tests (#867) 7 years ago
star.go Ensure that sessions are passed into queries that could use the database to prevent deadlocks (#5718) 6 years ago
star_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
status.go Better logging (#6038) (#6095) 5 years ago
status_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
test_fixtures.go Increase the retry limit to 20 times and the interval to 200ms (#5134) 6 years ago
token.go Refactor struct's time to remove unnecessary memory usage (#3142) 7 years ago
token_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
topic.go fix topic name length on database (#5493) 6 years ago
topic_test.go feat(repo): support search repository by topic name (#4505) 6 years ago
twofactor.go Switch plaintext scratch tokens to use hash instead (#4331) 6 years ago
u2f.go Better logging (#6038) (#6095) 5 years ago
u2f_test.go Override xorm type mapping for U2F counter (#6232) 5 years ago
unit.go Fix create team, update team missing units (#5188) 6 years ago
unit_tests.go refactor issue indexer, add some testing and fix a bug (#6131) 5 years ago
update.go Better logging (#6038) (#6095) 5 years ago
update_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
upload.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 5 years ago
user.go Better logging (#6038) (#6095) 5 years ago
user_follow.go Refactor session close as xorm already does everything needed internally (#2020) 7 years ago
user_follow_test.go Move user_follow to separate file (#1210) 7 years ago
user_heatmap.go Only count users own actions for heatmap contributions (#5647) 6 years ago
user_heatmap_test.go Fix JSON result of empty array (#5154) 6 years ago
user_mail.go Replace deprecated Id method with ID (#2655) 7 years ago
user_mail_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
user_openid.go Fix SQL quoting (#5117) 6 years ago
user_openid_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
user_test.go add isAdmin to user model (#6231) 5 years ago
webhook.go Better logging (#6038) (#6095) 5 years ago
webhook_dingtalk.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
webhook_discord.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
webhook_slack.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
webhook_test.go Add more webhooks support and refactor webhook templates directory (#3929) 6 years ago
wiki.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
wiki_test.go test: reduce testing time. (#3885) 6 years ago