diff options
author | Peter Smit <peter@smitmail.eu> | 2014-12-17 10:26:19 +0200 |
---|---|---|
committer | Peter Smit <peter@smitmail.eu> | 2014-12-17 10:26:19 +0200 |
commit | 99599c099f818ec7e0c41974f774d145170048a5 (patch) | |
tree | 95942111a18a49ba211c85a6d4cf68d7c5608ae6 /models/models.go | |
parent | d01f2f3c22648490aa96227762afae16bb505952 (diff) | |
download | gitea-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.go | 2 |
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() { |