This change allows a pre hashed password to be used for logging in using the provided Bot class.
It makes the LoginParams object responsible for hashing the password, instead of an inline hash in the LoginHandler and adds a flag to skip hashing if the provided password was pre hashed.
I personally wanted this for my project after a user said they would prefer to send a hashed password through my service if possible, and decided others may like the concept as well.
As it's just MD5 it's not some superb security, but it would make storing passwords for automatic login processes ever so slightly more palatable.
This change allows a pre hashed password to be used for logging in using the provided Bot class.
It makes the
LoginParams
object responsible for hashing the password, instead of an inline hash in theLoginHandler
and adds a flag to skip hashing if the provided password was pre hashed.I personally wanted this for my project after a user said they would prefer to send a hashed password through my service if possible, and decided others may like the concept as well.
As it's just MD5 it's not some superb security, but it would make storing passwords for automatic login processes ever so slightly more palatable.