X-Git-Url: https://svn.cri.ensmp.fr/git/photoprint.git/blobdiff_plain/221f5fb59b37184372ba78fc765925758f5c0579..4108abadea5456a9d832614c32b93925425f6904:/skins/customer_join_form.py?ds=inline diff --git a/skins/customer_join_form.py b/skins/customer_join_form.py index 4df2848..13422ea 100755 --- a/skins/customer_join_form.py +++ b/skins/customer_join_form.py @@ -1,6 +1,6 @@ ##parameters=add='' from Products.CMFCore.utils import getToolByName -from Products.realis.utils import translate +from Products.Plinn.utils import translate from ZTUtils import make_query as mq _ = lambda msg : translate(msg, context) ptool = getToolByName(script, 'portal_properties') @@ -17,7 +17,8 @@ fg = lambda name : form.get(name,'').strip() if add and \ context.validatePassword(**form) and \ - context.customer_add_control(**form) : + context.customer_add_control(**form) and \ + context.validatePrivateAccess(**form) : came_from = fg('came_from') if came_from : return context.setRedirect( atool, 'user/logged_in' @@ -39,6 +40,9 @@ continuationFields = [ , 'password' , 'confirm' , 'send_password' + , 'wedding_id' + , 'wedding_password' + , 'wedding_password_confirm' , 'billing_address' , 'billing_city' , 'billing_zipcode'