changeset 1923:aad93e28d9d6

fix traceback when logging password verification error
author Roger Haase <crosseyedpenguin@yahoo.com>
date Thu, 24 Jan 2013 09:12:11 -0700
parents 2920ee8b3b6d
children 2f923072f62b
files MoinMoin/user.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Wed Jan 23 13:13:25 2013 -0700
+++ b/MoinMoin/user.py	Thu Jan 24 09:12:11 2013 -0700
@@ -426,7 +426,7 @@
         try:
             password_correct, recomputed_hash = pwd_context.verify_and_update(password, pw_hash)
         except (ValueError, TypeError) as err:
-            logging.error('in user profile %r, verifying the passlib pw hash raised an Exception [%s]' % (self.id, str(err)))
+            logging.error('in user profile %r, verifying the passlib pw hash raised an Exception [%s]' % (self.name, str(err)))
         else:
             if recomputed_hash is not None:
                 data[ENC_PASSWORD] = recomputed_hash