@wendal version = true,用户注册插入时,version自动为0;但是当修改密码时version没有得到+1,以下时用户注册、修改密码的日志~
2018-02-08 15:39:38 Found mapping for [POST] path=/getMobileCode : TestCustomRealmMd5.getMobileCode(TestCustomRealmMd5.java:133)
2018-02-08 15:39:38 Get 'testCustomRealmMd5'<class com.naxxm.shiro.handlers.TestCustomRealmMd5>
697281
您的验证码为:697281,该验证码 5 分钟内有效,请勿泄漏于他人。【迅航收银】
2018-02-08 15:39:46 Found mapping for [POST] path=/register : TestCustomRealmMd5.register(TestCustomRealmMd5.java:163)
2018-02-08 15:39:46 Get 'testCustomRealmMd5'<class com.naxxm.shiro.handlers.TestCustomRealmMd5>
2018-02-08 15:39:46 select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_company WHERE mobile=?)t)tt where __rn__ > 0 order by __rn__
| 1 |
|-------------|
| 13800000000 |
For example:> "select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_company WHERE mobile='13800000000')t)tt where __rn__ > 0 order by __rn__ "
2018-02-08 15:39:46 // NOT SQL // ElFieldMacro=uuid()
2018-02-08 15:39:46 INSERT INTO t_sys_company(uuid,version,bm,mc,contacts,mobile,phone,QQ,WeChat,address,regDate,matDate,userNum,onlineNum,edition,loginDate,DBInfo,state,customer,saleMan,rent,industry,region,remarks) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
|----------------------------------|---|-------------|------|------|-------------|------|------|------|------|------|------|------|------|------|------|-----------------------------------------------------------|------|------|------|------|------|------|------|
| ef34a014873447d8a66f281c64af0cc0 | 0 | 13800000000 | NULL | NULL | 13800000000 | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | jdbc:jtds:sqlserver://127.0.0.1:1433/companyDB_01,sa,0000 | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
For example:> "INSERT INTO t_sys_company(uuid,version,bm,mc,contacts,mobile,phone,QQ,WeChat,address,regDate,matDate,userNum,onlineNum,edition,loginDate,DBInfo,state,customer,saleMan,rent,industry,region,remarks) VALUES('ef34a014873447d8a66f281c64af0cc0',0,'13800000000',NULL,NULL,'13800000000',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'jdbc:jtds:sqlserver://127.0.0.1:1433/companyDB_01,sa,0000',NULL,NULL,NULL,NULL,NULL,NULL,NULL) "
2018-02-08 15:39:46 select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_company WHERE bm=?)t)tt where __rn__ > 0 order by __rn__
| 1 |
|-------------|
| 13800000000 |
For example:> "select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_company WHERE bm='13800000000')t)tt where __rn__ > 0 order by __rn__ "
------------------------------------------------------------------------------------------------
null---jdbc:jtds:sqlserver:------127.0.0.1:1433---companyDB_01
------------------------------------------------------------------------------------------------
2018-02-08 15:39:46 select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_db WHERE db=?)t)tt where __rn__ > 0 order by __rn__
| 1 |
|--------------|
| companyDB_01 |
For example:> "select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_db WHERE db='companyDB_01')t)tt where __rn__ > 0 order by __rn__ "
--->数据库:true
--->数据库已经初始化
------------------------------------------------------------------------------------------------
null---jdbc:jtds:sqlserver://127.0.0.1:1433/companyDB_01---sa---0000
------------------------------------------------------------------------------------------------
--->系统数据库:公司信息正常!
2018-02-08 15:39:46 // NOT SQL // ElFieldMacro=uuid()
2018-02-08 15:39:46 INSERT INTO t_company_employee(uuid,version,bm,gs_bm,md_bm,name,password,authsalt,sex,mobile,wage,position,entrydate,sales,state) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
|----------------------------------|---|-------|-------------|------|-------|----------------------------------|--------|------|-------------|------|------|------|------|------|
| 9fd6fb8954de4ab9810d50070c03913e | 0 | 10000 | 13800000000 | NULL | admin | ee626fa3b3641f8bd6a46949984812e3 | e4N99E | NULL | 13800000000 | NULL | NULL | NULL | NULL | NULL |
For example:> "INSERT INTO t_company_employee(uuid,version,bm,gs_bm,md_bm,name,password,authsalt,sex,mobile,wage,position,entrydate,sales,state) VALUES('9fd6fb8954de4ab9810d50070c03913e',0,'10000','13800000000',NULL,'admin','ee626fa3b3641f8bd6a46949984812e3','e4N99E',NULL,'13800000000',NULL,NULL,NULL,NULL,NULL) "
2018-02-08 15:39:46 201---用户注册成功!
您的工号:10000,密码:1375F9请及时修改初始密码,妥善保管好您的用户信息。【迅航收银】
2018-02-08 15:39:56 Found mapping for [POST] path=/login : TestCustomRealmMd5.login(TestCustomRealmMd5.java:72)
2018-02-08 15:39:56 Get 'testCustomRealmMd5'<class com.naxxm.shiro.handlers.TestCustomRealmMd5>
com.naxxm.utils.JSONResult@1d870f1
--->步骤一:公司编码:13800000000用户输入用户名:10000,密码:1375F9
2018-02-08 15:39:56 select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_company WHERE bm=?)t)tt where __rn__ > 0 order by __rn__
| 1 |
|-------------|
| 13800000000 |
For example:> "select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_company WHERE bm='13800000000')t)tt where __rn__ > 0 order by __rn__ "
------------------------------------------------------------------------------------------------
null---jdbc:jtds:sqlserver:------127.0.0.1:1433---companyDB_01
------------------------------------------------------------------------------------------------
2018-02-08 15:39:56 select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_db WHERE db=?)t)tt where __rn__ > 0 order by __rn__
| 1 |
|--------------|
| companyDB_01 |
For example:> "select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_sys_db WHERE db='companyDB_01')t)tt where __rn__ > 0 order by __rn__ "
--->数据库:true
--->数据库已经初始化
公司编码:13800000000
------------------------------------------------------------------------------------------------
null---jdbc:jtds:sqlserver://127.0.0.1:1433/companyDB_01---sa---0000
------------------------------------------------------------------------------------------------
--->系统数据库:公司信息正常!
2018-02-08 15:39:56 SELECT * FROM t_company_employee WHERE bm=? AND gs_bm=?
| 1 | 2 |
|-------|-------------|
| 10000 | 13800000000 |
For example:> "SELECT * FROM t_company_employee WHERE bm='10000' AND gs_bm='13800000000'"
------------------------------------------------------------------------------------------------
null---jdbc:jtds:sqlserver://127.0.0.1:1433/companyDB_01---sa---0000
------------------------------------------------------------------------------------------------
--->系统数据库:公司信息正常!
2018-02-08 15:39:56 SELECT * FROM t_company_employee WHERE bm=? AND gs_bm=?
| 1 | 2 |
|-------|-------------|
| 10000 | 13800000000 |
For example:> "SELECT * FROM t_company_employee WHERE bm='10000' AND gs_bm='13800000000'"
2018-02-08 15:39:56 SELECT * FROM t_company_role WHERE bm IN (SELECT role_bm FROM t_company_employee_role WHERE employee_bm='9fd6fb8954de4ab9810d50070c03913e')
用户信息:admin
用户权限:[]
2018-02-08 15:39:56 com.naxxm.bean.company.ActiveUser@c63dcd
org.apache.shiro.session.UnknownSessionException: There is no session with id [pbp1edpbkojtdrjh6uk8vncqqg]
at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:170)
at org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:261)
at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236)
at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222)
at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118)
at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:148)
at org.apache.shiro.session.mgt.AbstractNativeSessionManager.getSession(AbstractNativeSessionManager.java:140)
at com.naxxm.shiro.filters.KickoutSessionControlFilter.onAccessDenied(KickoutSessionControlFilter.java:109)
at org.apache.shiro.web.filter.AccessControlFilter.onAccessDenied(AccessControlFilter.java:133)
at org.apache.shiro.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:162)
at org.apache.shiro.web.filter.PathMatchingFilter.isFilterChainContinued(PathMatchingFilter.java:203)
at org.apache.shiro.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:178)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:131)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
2018-02-08 15:40:05 Found mapping for [POST] path=/naxxm/user/changePWD : UserAction.changePWD(UserAction.java:72)
2018-02-08 15:40:05 Get 'userAction'<class com.naxxm.action.UserAction>
------------------------------------------------------------------------------------------------
null---jdbc:jtds:sqlserver://127.0.0.1:1433/companyDB_01---sa---0000
------------------------------------------------------------------------------------------------
--->系统数据库:公司信息正常!
2018-02-08 15:40:05 select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_company_employee WHERE bm=?)t)tt where __rn__ > 0 order by __rn__
| 1 |
|-------|
| 10000 |
For example:> "select * from(select row_number()over(order by __tc__)__rn__,* from(select top 1 0 __tc__, * FROM t_company_employee WHERE bm='10000')t)tt where __rn__ > 0 order by __rn__ "
------------------------------------------------------------------------------------------------
null---jdbc:jtds:sqlserver://127.0.0.1:1433/companyDB_01---sa---0000
------------------------------------------------------------------------------------------------
--->系统数据库:公司信息正常!
2018-02-08 15:40:05 UPDATE t_company_employee SET version=?,bm=?,gs_bm=?,md_bm=?,name=?,password=?,authsalt=?,sex=?,mobile=?,wage=?,position=?,entrydate=?,sales=?,state=? WHERE uuid=?
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
|---|-------|-------------|------|-------|----------------------------------|--------|------|-------------|------|------|------|------|------|----------------------------------|
| 0 | 10000 | 13800000000 | NULL | admin | 17b0b875169cf6a68cd0394054f83e2a | h2n735 | NULL | 13800000000 | NULL | NULL | NULL | NULL | NULL | 9fd6fb8954de4ab9810d50070c03913e |
For example:> "UPDATE t_company_employee SET version=0,bm='10000',gs_bm='13800000000',md_bm=NULL,name='admin',password='17b0b875169cf6a68cd0394054f83e2a',authsalt='h2n735',sex=NULL,mobile='13800000000',wage=NULL,position=NULL,entrydate=NULL,sales=NULL,state=NULL WHERE uuid='9fd6fb8954de4ab9810d50070c03913e'"
2018-02-08 15:40:05 201---密码修改成功!