NutzCN Logo
问答 新手教学——入口方法的权限管理,登录失败
发布于 3175天前 作者 dahaoqiu 2264 次浏览 复制 上一个帖子 下一个帖子
标签:

按照书上面修改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

3 回复

用户名的input的name改成username试试

@wendal 好了。页面是username,bean里面是name,哈哈,我改了

嗯嗯,这是个坑

添加回复
请先登陆
回到顶部