1. Thomas Waldmann
  2. moin-2.0

Commits

Roger Haase  committed aad93e2

fix traceback when logging password verification error

  • Participants
  • Parent commits 2920ee8
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/user.py

View file
         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