summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorPeter Smit <peter@smitmail.eu>2014-12-17 10:26:19 +0200
committerPeter Smit <peter@smitmail.eu>2014-12-17 10:26:19 +0200
commit99599c099f818ec7e0c41974f774d145170048a5 (patch)
tree95942111a18a49ba211c85a6d4cf68d7c5608ae6 /models/models.go
parentd01f2f3c22648490aa96227762afae16bb505952 (diff)
downloadgitea-99599c099f818ec7e0c41974f774d145170048a5.tar.gz
gitea-99599c099f818ec7e0c41974f774d145170048a5.zip
Add alternative email addresses to the model
A new struct is created named EmailAddress that contains alternative email addresses for users. Also the email related methods; IsEmailUsed and GetUserByEmail are updated. DeleteUser deletes the extra email addresses and DeleteInactivateUsers also deletes inactive accounts. This could be factored out, but should do it for now.
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index 92849f5856..677f9ba9d7 100644
--- a/models/models.go
+++ b/models/models.go
@@ -45,7 +45,7 @@ func init() {
new(Issue), new(Comment), new(Attachment), new(IssueUser), new(Label), new(Milestone),
new(Mirror), new(Release), new(LoginSource), new(Webhook),
new(UpdateTask), new(HookTask), new(Team), new(OrgUser), new(TeamUser),
- new(Notice))
+ new(Notice), new(EmailAddress))
}
func LoadModelsConfig() {