summaryrefslogtreecommitdiffstats
path: root/routers/user/user.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 21:05:48 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 21:05:48 -0400
commit6f6862086047ba6902f51de3cb66eb3af04fffbd (patch)
treecad4673115913aa14413c6a7082359d99a5dd913 /routers/user/user.go
parent601c10309dd93c55c3c825c5a5c2384d46493589 (diff)
downloadgitea-6f6862086047ba6902f51de3cb66eb3af04fffbd.tar.gz
gitea-6f6862086047ba6902f51de3cb66eb3af04fffbd.zip
Pools limit concurrent nums
Diffstat (limited to 'routers/user/user.go')
-rw-r--r--routers/user/user.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/user.go b/routers/user/user.go
index 32f458f835..37070af3f9 100644
--- a/routers/user/user.go
+++ b/routers/user/user.go
@@ -249,6 +249,9 @@ func Activate(ctx *middleware.Context) {
user.IsActive = true
user.Rands = models.GetUserSalt()
models.UpdateUser(user)
+
+ log.Trace("%s User activated: %s", ctx.Req.RequestURI, user.LowerName)
+
ctx.Session.Set("userId", user.Id)
ctx.Session.Set("userName", user.Name)
ctx.Redirect("/", 302)