Modify ↓
#12669 closed defect (fixed)
Replace use of deprecated encrypt method from passlib library
| Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2.1 |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | passlib windows |
| Cc: | Branch: | ||
| Release Notes: |
Replaced use of deprecated |
||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
I noticed the following in the AppVeyor builds:
C:\projects\trac\trac\util\compat.py:36: DeprecationWarning: the method passlib.handlers.des_crypt.des_crypt.encrypt() is deprecated as of Passlib 1.7, and will be removed in Passlib 2.0, use .hash() instead. return des_crypt.encrypt(secret, salt=salt)
PasswordHash.encrypt() was renamed to PasswordHash.hash() in release 1.7 (Nov 2016).
Attachments (0)
Change History (6)
comment:1 by , 9 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 9 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 9 years ago
comment:4 by , 9 years ago
| Release Notes: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.



Proposed changes:
trac/util/compat.py
Tested with Passlib 1.6 and 1.7 on Windows 7 x64.