summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-20 08:02:14 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-20 08:02:14 -0400
commit4cf6cc63b0679aaf5fe8b74a2aaf0bd92b1f12d3 (patch)
tree180c744071a0898a415579613379c6a7f80e8bc8 /routers/user
parent9f9cd6bfc61d82ee0a3d31cee112be7975b8ca86 (diff)
downloadgitea-4cf6cc63b0679aaf5fe8b74a2aaf0bd92b1f12d3.tar.gz
gitea-4cf6cc63b0679aaf5fe8b74a2aaf0bd92b1f12d3.zip
Work on admin
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/user.go b/routers/user/user.go
index 2b759e4192..be2c4d3839 100644
--- a/routers/user/user.go
+++ b/routers/user/user.go
@@ -153,7 +153,7 @@ func SignUp(ctx *middleware.Context, form auth.RegisterForm) {
log.Trace("%s User created: %s", ctx.Req.RequestURI, strings.ToLower(form.UserName))
// Send confirmation e-mail.
- if base.Service.RegisterEmailConfirm {
+ if base.Service.RegisterEmailConfirm && u.Id > 1 {
mailer.SendRegisterMail(ctx.Render, u)
ctx.Data["IsSendRegisterMail"] = true
ctx.Data["Email"] = u.Email