summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c124e6e)
raw | patch | inline | side by side (parent: c124e6e)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 18 Dec 2002 23:57:09 +0000 (23:57 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 18 Dec 2002 23:57:09 +0000 (23:57 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1418 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/password.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 0d6eab2aec15a06905dab2403e6fff8cd6376637..205552991db93505645a0a4f2795e0eea53d9662 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- 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 459e1f7877c86d94f9e3b0924dd9767f65c3a0b0..8400f67a1bfc59c7a980aa6d6ff6a89a32153b9d 100644 (file)
--- a/roundup/password.py
+++ b/roundup/password.py
# 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).
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: