summaryrefslogtreecommitdiffstats
path: root/routers/install.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 /routers/install.go
parentb2801a2e985f11e940a0cd420cea57242ea26d4c (diff)
downloadgitea-e0f9c628c5ff7399167944b3d0730698487af498.tar.gz
gitea-e0f9c628c5ff7399167944b3d0730698487af498.zip
Add create organization
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/install.go b/routers/install.go
index 6ce7c98026..bb3c16eae4 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -227,7 +227,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
GlobalInit()
// Create admin account.
- if _, err := models.RegisterUser(&models.User{Name: form.AdminName, Email: form.AdminEmail, Passwd: form.AdminPasswd,
+ if _, err := models.CreateUser(&models.User{Name: form.AdminName, Email: form.AdminEmail, Passwd: form.AdminPasswd,
IsAdmin: true, IsActive: true}); err != nil {
if err != models.ErrUserAlreadyExist {
setting.InstallLock = false