Hello all,
I've been working on some improvements on user changing password (see
XWiki-6882). In particular, I tried to make mandatory, for an user wanting
to change his password, to submit also his current password, so that I
could check it.
The problem is that there is no way to make this check through velocity. I
tried to use some groovy instead, but it breaks the functional tests. So I
need to introduce a new method "checkPassword" accessible from velocity
scripts. The question is, where should I implement it ?
There are two possibilities
1) Wrote a new component
2) Add this method in an existing API.
I don't really like 1), as I feel it would be strange to introduce a new
service with only one method.
In the meanwhile, for 2), I don't really know in which API this method
could fit. Sergiu told me that I could perhaps put it in
com.xpn.xwiki.plugin.rightsmanager.RightsManagerPluginApi,
but that it wasn't really good either. Any ideas ?
Cheers,
Thomas