fix logic issue

This commit is contained in:
Sola
2015-12-12 22:22:10 +08:00
parent 8b44cedf58
commit 3a4ed81482
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ public class Register extends HttpServlet {
response.addHeader("Content-type", "text/plain;charset=utf-8");
HttpSession httpSession = request.getSession(false);
if (Checker.authorized(httpSession, Command.REGISTER)) {
if (!Checker.authorized(httpSession, Command.REGISTER)) {
Redirect.message(response, 0, "Authorize_Failed");
return;
}