From: richard Date: Wed, 18 Dec 2002 23:57:09 +0000 (+0000) Subject: fixed handling of missing password (sf bug 655632) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dfd31f6020633e7c9cd580dacd862d54f3a1c07f;p=roundup.git fixed handling of missing password (sf bug 655632) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1418 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 0d6eab2..2055529 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,7 @@ are given with the most recent entry first. - hyperlinking of special text (url, email, item designator) in messages - fixed time default in date.py - fixed error in cgi/templates.py (sf bug 652089) +- fixed handling of missing password (sf bug 655632) 2002-12-11 0.5.3 diff --git a/roundup/password.py b/roundup/password.py index 459e1f7..8400f67 100644 --- a/roundup/password.py +++ b/roundup/password.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: password.py,v 1.7 2002-09-26 13:38:35 gmcm Exp $ +# $Id: password.py,v 1.8 2002-12-18 23:57:09 richard Exp $ __doc__ = """ Password handling (encoding, decoding). @@ -31,6 +31,8 @@ except: def encodePassword(plaintext, scheme, other=None): '''Encrypt the plaintext password. ''' + if plaintext is None: + plaintext = "" if scheme == 'SHA': s = sha.sha(plaintext).hexdigest() elif scheme == 'crypt' and crypt is not None: