I had put this question earlier too but knowing that its not configurable
in xwiki as of now as OOB feature. So started implementing this feature
myself with
some modification in code. I did modifications in checkPassword method of
XWikiAuthServiceImpl. Basically i want to put the *passwordLockCount *as
name and *1* as value
in xwikiintegers table(when user tries any unsuccessful login attempt). For
this i used the api i.e userObject.setIntValue("passwordLockCount", 1)
where userObject
is of type BaseObject. But it does not put the value in xwikiintegers table
rather it put in cache. Please recommend me the right API the to put this
number
property in xwikiintegers table?
*i also tried *
NumberProperty passwordLockCount = new IntegerProperty();
passwordLockCount.setName("passwordLockCount");
passwordLockCount.setValue(1);
userObject.addField("passwordLockCount", passwordLockCount);
But it also does not put the property in database?