diff options
author | Unknwon <u@gogs.io> | 2015-07-09 11:15:08 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-09 11:15:08 +0800 |
commit | b60fd3aaadc3e6ad227b663d599e073f1436fd1f (patch) | |
tree | 3aa7a1e26cd878c09a52078d5aa202489122f27c /routers/install.go | |
parent | 3be3b8faa7b1fa8fcac0bec49f2a37e861b4353d (diff) | |
parent | 4fca548ed11cefedcaa595be1c08625a9ae9f878 (diff) |
Merge branch 'master' of github.com:gogits/gogs
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 f5dc0c58..6da61128 100644 --- a/routers/install.go +++ b/routers/install.go @@ -239,7 +239,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) { // Create admin account. 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 { + if !models.IsErrUserAlreadyExist(err) { setting.InstallLock = false ctx.Data["Err_AdminName"] = true ctx.Data["Err_AdminEmail"] = true |