fix login for md5 passwords.

--HG--
extra : rebase_source : 2c3ebc6dcf6eac48d77bbc7ddae83f28abbc4fc5