summaryrefslogtreecommitdiffstats
path: root/models/login.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-25 00:44:48 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-25 00:44:48 -0400
commite0f9c628c5ff7399167944b3d0730698487af498 (patch)
treecb296196a29b713d4aa224a296e5088021e6b777 /models/login.go
parentb2801a2e985f11e940a0cd420cea57242ea26d4c (diff)
downloadgitea-e0f9c628c5ff7399167944b3d0730698487af498.tar.gz
gitea-e0f9c628c5ff7399167944b3d0730698487af498.zip
Add create organization
Diffstat (limited to 'models/login.go')
-rw-r--r--models/login.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/login.go b/models/login.go
index 98c5c64e40..e99b61e779 100644
--- a/models/login.go
+++ b/models/login.go
@@ -255,7 +255,7 @@ func LoginUserLdapSource(user *User, name, passwd string, sourceId int64, cfg *L
Email: mail,
}
- return RegisterUser(user)
+ return CreateUser(user)
}
type loginAuth struct {
@@ -359,5 +359,5 @@ func LoginUserSMTPSource(user *User, name, passwd string, sourceId int64, cfg *S
Passwd: passwd,
Email: name,
}
- return RegisterUser(user)
+ return CreateUser(user)
}