The user object has a field for setting whether the user name is
activated. If you're using XWiki Enterprise you can edit
XWiki.Registration and there is an example of how to add a "favorite
color" field which contains a "doAfterRegistration" option for code
to do something to the user after registration, you can set this to
get the user object from the user's document then set the "active"
field to 0.
XWiki.Registration does not exist in Workspaces and you would have
to add the code to xwiki.war/templates/register-inline.vm
I'm sure there are other ways to do it (I don't know very much about
Workspaces) but this is one that I know.
Caleb
JoannaD wrote:
Hello Guillaume
I need to somehow control the registration in our wiki meaning that people
can register but an admin needs to approve them before being able to login
and use the wiki.
After searching in the forum I ended up reading the guidelines you gave to
another user.
I couldn't follow your instructions.
I don't whether these are by now outdated or I just did not understand them.
Any help is greatly appreciated!
Thanks,
Joanna
-----
Joanna
-- Please consider the environment --