按照书上面修改UserModule类,打开UserModule,删除login/logout方法,
删除所有@Filters的行,为add/update/delete/query/index, 加入shiro注解 @RequiresUser
显示登录失败
报错日志:
log4j: 2016-03-07 17:25:15,084 [http-nio-8080-exec-10] DEBUG org.nutz.dao.impl.sql.run.NutDaoExecutor - SELECT * FROM t_user WHERE name IS NULL LIMIT 0, 1
log4j: 2016-03-07 17:25:15,085 [http-nio-8080-exec-10] DEBUG org.apache.shiro.realm.AuthenticatingRealm - Looked up AuthenticationInfo [null] from doGetAuthenticationInfo
log4j: 2016-03-07 17:25:15,085 [http-nio-8080-exec-10] DEBUG org.apache.shiro.realm.AuthenticatingRealm - No AuthenticationInfo found for submitted AuthenticationToken [org.nutz.integration.shiro.CaptchaUsernamePasswordToken - null, rememberMe=false (0:0:0:0:0:0:0:1)]. Returning null.
log4j: 2016-03-07 17:25:15,086 [http-nio-8080-exec-10] DEBUG org.apache.shiro.web.servlet.SimpleCookie - Added HttpServletResponse Cookie [rememberMe=deleteMe; Path=/nutbook; Max-Age=0; Expires=Sun, 06-Mar-2016 09:25:15 GMT]
log4j: 2016-03-07 17:25:16,395 [NutzbookScheduler_QuartzSchedulerThread] DEBUG org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers
添加回复
请先登陆