-
1. Re: UsersRolesLoginModule hashed password doesn't work
jwkaltz Jan 28, 2003 12:20 PM (in response to hecis)What does your stored, hashed password look like ?
I have noticed the following (at least in the UsernamePasswordLoginModule, I don't know if it's the same in the module you are using) :
when you tell the module to hash passwords, it hashes them without a prefix.
However, my hashing utility (on Unix), when asked to hash with SHA produces something like {SHA}kfldskflsd; and this is how I stored the passwords.
Since the login module then does a string compare, of course it's always false. So I subclassed the login module and added code to "fix" the string comparison so that it works in this case too.
Maybe this is the same problem you're having. In any case to get to the bottom of this, you can write a subclass of the login module you're using, and use that (adding logging statements to find out what's going on)