Browse Source

git-svn-id: https://192.168.57.71/svn/jsgkj@712 931142cf-59ea-a443-aa0e-51397b428577

xt_yuanxd 8 năm trước cách đây
mục cha
commit
367b78caa3

+ 2 - 0
gkaqv2/trunk/modules/web/src/main/java/com/xt/js/gkaq/web/ctl/LoginCtl.java

@@ -1,6 +1,7 @@
 package com.xt.js.gkaq.web.ctl;
 
 import org.apache.shiro.SecurityUtils;
+import org.apache.shiro.authz.annotation.RequiresAuthentication;
 import org.apache.shiro.authz.annotation.RequiresRoles;
 import org.apache.shiro.subject.Subject;
 import org.springframework.stereotype.Controller;
@@ -19,6 +20,7 @@ public class LoginCtl extends BaseCtl {
 		return "sys/login";
 	}
 
+	@RequiresAuthentication
 	@RequestMapping(value = "/index")
 	public String index() {
 		return "sys/index";