[CMF-checkins] CVS: CMF/CMFDefault - RegistrationTool.py:1.23
Yvo Schubbe
cvs-admin at zope.org
Mon Nov 3 05:06:29 EST 2003
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv28708/CMFDefault
Modified Files:
RegistrationTool.py
Log Message:
an empty password is never a valid password
=== CMF/CMFDefault/RegistrationTool.py 1.22 => 1.23 ===
--- CMF/CMFDefault/RegistrationTool.py:1.22 Tue Oct 28 08:49:45 2003
+++ CMF/CMFDefault/RegistrationTool.py Mon Nov 3 05:06:28 2003
@@ -76,6 +76,9 @@
o If the password is valid, return None.
o If not, return a string explaining why.
"""
+ if not password:
+ return 'You must enter a password.'
+
if len(password) < 5 and not _checkPermission(ManagePortal, self):
return 'Your password must contain at least 5 characters.'
More information about the CMF-checkins
mailing list