From 1f2e173a745da8e4b57f96b5561a3c10054d3b76 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 24 Jul 2016 01:08:22 +0800 Subject: Refactor User.Id to User.ID --- routers/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/install.go') diff --git a/routers/install.go b/routers/install.go index 99380e1b92..23fb01735a 100644 --- a/routers/install.go +++ b/routers/install.go @@ -374,7 +374,7 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) { } // Auto-login for admin - ctx.Session.Set("uid", u.Id) + ctx.Session.Set("uid", u.ID) ctx.Session.Set("uname", u.Name) } -- cgit v1.2.3