[xwiki-users] preventing registration on workspaces under xem
Hi, I'm using workspaces 1.2M1 as a virtual xwiki under xem 1.3. I have configured the XWikiServerClass object under XWikiServerServername to have the visibility property set to 'Private'. When I look at XWikiPreferences in the virtual xwiki, there are XWikiGlobalRights objects configured Deny, Groups:,Levels:Register,Users:XWikiGuest, and Deny, Groups:XWikiAllGroup, Levels: edit, register, Users: The registration form still appears on the login page, and upon filling in the fields and submitting, registration is successful. I need to not allow registration by anyone except Admin. Thanks, Dan Svoboda
In your XWiki Workspaces instance, click on the "Adminisration" link located at the top left of the top menu bar. On the Settings page, click on the "Edit settings" located at the top left. Then set "allow public registration" to false. Does this work ? Guillaume On Wed, Oct 8, 2008 at 7:48 PM, Daniel Svoboda <dsvoboda@structbio.pitt.edu>wrote:
Hi,
I'm using workspaces 1.2M1 as a virtual xwiki under xem 1.3. I have configured the XWikiServerClass object under XWikiServerServername to have the visibility property set to 'Private'. When I look at XWikiPreferences in the virtual xwiki, there are XWikiGlobalRights objects configured Deny, Groups:,Levels:Register,Users:XWikiGuest, and Deny, Groups:XWikiAllGroup, Levels: edit, register, Users:
The registration form still appears on the login page, and upon filling in the fields and submitting, registration is successful.
I need to not allow registration by anyone except Admin.
Thanks,
Dan Svoboda _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://blog.xwiki.com/
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 -- -- View this message in context: http://xwiki.475771.n2.nabble.com/preventing-registration-on-workspaces-unde... Sent from the XWiki- Users mailing list archive at Nabble.com.
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 --
On 05/13/2010 05:50 PM, 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!
One possible solution: Go to Administer wiki, Registration, enable "Use email verification" and "Check Active fields for user authentication", change the "Validation e-Mail Content" so that it doesn't contain the validation link, but say something like "Your account will e validated shortly". This solves the need for validation, but then you'll need to develop some UI which allows administrators to list and manually activate new users. Fast pointers: {{velocity}}{{html wiki="false"}} <ul> #foreach($d in $xwiki.wrapDocs($xwiki.searchDocuments(", BaseObject obj, IntegerProperty act where obj.className = 'XWiki.XWikiUsers' and obj.name = doc.fullName and act.id.id = obj.id and act.id.name = 'active' and act.value <> 1"))) <li>$xwiki.getUserName($d.fullName) (<a href="$d.getURL('save', 'XWiki.XWikiUsers_0_active=1')&xredirect=$doc.getURL()">activate</a>)</li> #end </ul> {{/html}}{{/velocity}} -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi Sergiu Thanks a lot for the tip. Ill give that a try! Best regards, Joanna Demetriou Business Software Analyst | SOFTimpact Ltd. | Tel:+357-25-875632 | Fax: +357-25-583344 Web: http://www.soft-impact.com| Address: 105 Griva Digeni Avenue, 3101 Limassol, Cyprus From: Sergiu Dumitriu-2 [via XWiki][mailto:ml-node+5046889-106705584-540370@n2.nabble.com] Sent: 13 May 2010 19:22 To: JoannaD Subject: Re: preventing registration on workspaces under xem On 05/13/2010 05:50 PM, 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 understandthem.
Any help is greatly appreciated!
One possible solution: Go to Administer wiki, Registration, enable "Use email verification" and "Check Active fields for userauthentication", change the "Validation e-Mail Content" so that it doesn't contain the validation link, but say something like "Your account will e validated shortly". This solves the need for validation, but then you'll need to develop some UI which allows administrators to list and manually activate new users. Fast pointers: {{velocity}}{{html wiki="false"}} <ul> #foreach($d in $xwiki.wrapDocs($xwiki.searchDocuments(", BaseObject obj, IntegerProperty act where obj.className = 'XWiki.XWikiUsers' and obj.name = doc.fullName and act.id.id = obj.id and act.id.name = 'active' and act.value <> 1"))) <li>$xwiki.getUserName($d.fullName) (<ahref="$d.getURL('save', 'XWiki.XWikiUsers_0_active=1')&xredirect=$doc.getURL()">activate</a>)</li> #end </ul> {{/html}}{{/velocity}} -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [hiddenemail] http://lists.xwiki.org/mailman/listinfo/users View message @ http://xwiki.475771.n2.nabble.com/preventing-registration-on-workspaces-unde... To unsubscribe from Re: preventing registration on workspaces under xem, clickhere. DISCLAIMER: The contents of this e-mail, as well as the enclosures, might be confidential and are solely intended for the named addressee. Access to this e-mail by anyone else is unauthorized. If you are neither the named addressee of this e-mail, nor his personal representative, any form of publication, reproduction or distribution of the contents of this e-mail is prohibited. If you have received this e-mail in error, please immediately contact the sender of this e-mail. E-mails sent via the internet can easily be recreated under another person´s name or manipulated by third parties. For this reason SOFTimpact Ltd. cannot be held liable for the above declarations and statements. ----- Joanna -- Please consider the environment -- -- View this message in context: http://xwiki.475771.n2.nabble.com/preventing-registration-on-workspaces-unde... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Caleb! Thanks a lot for the tip! Best regards, Joanna Demetriou Business Software Analyst | SOFTimpact Ltd. | Tel:+357-25-875632 | Fax: +357-25-583344 Web: http://www.soft-impact.com| Address: 105 Griva Digeni Avenue, 3101 Limassol, Cyprus From: Caleb James DeLisle [via XWiki][mailto:ml-node+5046842-1091512321-540370@n2.nabble.com] Sent: 13 May 2010 19:14 To: JoannaD Subject: Re: preventing registration on workspaces under xem The user object has a field for setting whether the username 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 forcode 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 understandthem.
Any help is greatly appreciated!
Thanks,
Joanna
----- Joanna
-- Please consider the environment --
_______________________________________________ users mailing list [hiddenemail] http://lists.xwiki.org/mailman/listinfo/users View message @ http://xwiki.475771.n2.nabble.com/preventing-registration-on-workspaces-unde... To unsubscribe from Re: preventing registration on workspaces under xem, clickhere. DISCLAIMER: The contents of this e-mail, as well as the enclosures, might be confidential and are solely intended for the named addressee. Access to this e-mail by anyone else is unauthorized. If you are neither the named addressee of this e-mail, nor his personal representative, any form of publication, reproduction or distribution of the contents of this e-mail is prohibited. If you have received this e-mail in error, please immediately contact the sender of this e-mail. E-mails sent via the internet can easily be recreated under another person´s name or manipulated by third parties. For this reason SOFTimpact Ltd. cannot be held liable for the above declarations and statements. ----- Joanna -- Please consider the environment -- -- View this message in context: http://xwiki.475771.n2.nabble.com/preventing-registration-on-workspaces-unde... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (5)
-
Caleb James DeLisle -
Daniel Svoboda -
Guillaume Lerouge -
JoannaD -
Sergiu Dumitriu