diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-25 00:44:48 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-25 00:44:48 -0400 |
commit | e0f9c628c5ff7399167944b3d0730698487af498 (patch) | |
tree | cb296196a29b713d4aa224a296e5088021e6b777 /routers/install.go | |
parent | b2801a2e985f11e940a0cd420cea57242ea26d4c (diff) | |
download | gitea-e0f9c628c5ff7399167944b3d0730698487af498.tar.gz gitea-e0f9c628c5ff7399167944b3d0730698487af498.zip |
Add create organization
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 2 |
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 |