修改shiro.ini

shiro.ini的内容终于有实际含义了

  1. [main]
  2. nutzdao_realm = net.wendal.nutzbook.shiro.realm.SimpleAuthorizingRealm
  3. authc = org.nutz.integration.shiro.SimpleAuthenticationFilter
  4. authc.loginUrl = /user/login
  5. logout.redirectUrl= /user/login
  6. [urls]
  7. /rs/* = anon
  8. /user/logout = logout
  9. /user/error = anon
  10. /user/login = anon
  11. /user/profile/active/mail = anon

看这里看这里

  • SimpleAuthenticationFilter 不处理登录操作,直接穿透的
  • /user/login是UserModule的login方法所映射的路径
  • nutzdao_realm指向的就是前一小节新增的NutDaoRealm