diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-04-22 05:30:36 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-04-22 05:30:36 -0400 |
commit | dbdaf934e1b8fab06361266268bb55d30b352f37 (patch) | |
tree | 0394c9d721ef939707cbabffc21d56601ac535f7 /routers | |
parent | d6ff275c587ecb9082f2697df7f3e9ec5a0226eb (diff) | |
parent | 34d18a19a3cd2d16c03594ea9e1c3f423cb55687 (diff) | |
download | gitea-dbdaf934e1b8fab06361266268bb55d30b352f37.tar.gz gitea-dbdaf934e1b8fab06361266268bb55d30b352f37.zip |
Merge pull request #87 from bjohnso5/master
Minor grammatical fix for Disable Registration feature
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/user.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/user/user.go b/routers/user/user.go index 91b51ceec9..7decd72d4e 100644 --- a/routers/user/user.go +++ b/routers/user/user.go @@ -169,8 +169,8 @@ func SignUp(ctx *middleware.Context) { ctx.Data["Title"] = "Sign Up" ctx.Data["PageIsSignUp"] = true - if base.Service.DisenableRegisteration { - ctx.Data["DisenableRegisteration"] = true + if base.Service.DisableRegistration { + ctx.Data["DisableRegistration"] = true ctx.HTML(200, "user/signup") return } @@ -208,7 +208,7 @@ func SignUpPost(ctx *middleware.Context, form auth.RegisterForm) { ctx.Data["Title"] = "Sign Up" ctx.Data["PageIsSignUp"] = true - if base.Service.DisenableRegisteration { + if base.Service.DisableRegistration { ctx.Handle(403, "user.SignUpPost", nil) return } |