Ensure that deleted users can not re-register and gain control of their previouis folders
This only applies if you keep a user's folder once you have deleted the user (i.e. if delete_memberareas=0 is set in prefs_user_manage.cpy ).
This may be an ugly hack, there are probably better ways to do it!Create a custom validation script:
Add the following script to your product/custom skin:
## Script (Python) "isMemberAllowed"
##parameters=id
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##title=Check that a member doesn't exist AND hasn't previously existed.
##
reg_tool=context.portal_registration
membership = context.portal_membership
if reg_tool.isMemberIdAllowed(id) is None or membership.getHomeFolder(id) is not None:
return 0
return 1
Modify the join form validation:
Customise the appropriate line in join_form_validate.cpy to:
if not state.getError('username') and not context.isMemberAllowed(username):Job done. Test this yourself, obviously.

Author: