aboutsummaryrefslogtreecommitdiffstats
path: root/routers/install/install.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/install/install.go')
-rw-r--r--routers/install/install.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/install/install.go b/routers/install/install.go
index 41b11aef33..3fc5f0536a 100644
--- a/routers/install/install.go
+++ b/routers/install/install.go
@@ -521,7 +521,7 @@ func SubmitInstall(ctx *context.Context) {
return
}
log.Info("Admin account already exist")
- u, _ = user_model.GetUserByName(u.Name)
+ u, _ = user_model.GetUserByName(ctx, u.Name)
}
days := 86400 * setting.LogInRememberDays