1
0
Fork 0
forked from forgejo/forgejo

Add some log

This commit is contained in:
Unknown 2014-03-19 04:48:45 -04:00
parent b192b70aec
commit bd9d90d8c4
6 changed files with 22 additions and 4 deletions

View file

@ -6,6 +6,7 @@ package user
import (
"fmt"
"strings"
"github.com/codegangsta/martini"
"github.com/martini-contrib/render"
@ -14,6 +15,7 @@ import (
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/middleware"
)
@ -146,6 +148,7 @@ func SignUp(ctx *middleware.Context, form auth.RegisterForm) {
return
}
log.Trace("%s User created: %s", ctx.Req.RequestURI, strings.ToLower(form.UserName))
ctx.Render.Redirect("/user/login")
}