Modify ↓
Opened 18 years ago
Closed 18 years ago
#1410 closed defect (fixed)
Error in _check_userline for HtDigestStore
Reported by: | Owned by: | Matt Good | |
---|---|---|---|
Priority: | high | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
The method "_check_userline" (on line 176) in class HtDigestStore (file htfile.py) seems to reference a global variable "user" which is not there. This error prevents users from logging in if the environment has been set to use HtDigestStore.
Attachments (0)
Change History (3)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
An even smaller fix:
-
acct_mgr/htfile.py
173 173 return self.prefix(user) + htdigest(user, self.realm, password) 174 174 175 175 def _check_userline(self, password, prefix, suffix): 176 user = prefix.split(':')[0] 176 177 return suffix == htdigest(user, self.realm, password) 177 178 178 179 def _get_users(self, filename):
comment:3 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I think this is a case of a missing parameter. Bug was introduced in [2120].
Here's a pretty minimal patch for the 0.10 branch that just adds
user
as a parameter where needed.acct_mgr/htfile.py
password, prefix,password, prefix, suffix):password, prefix, suffix):