mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Store password hash instead of plaintext for login persistence
Save SHA1(UPPER(user):UPPER(pass)) hash to login.cfg instead of the plaintext password. On subsequent logins, use the stored hash directly with a new authenticateWithHash() method that bypasses password hashing. The password field shows a placeholder when using a stored hash.
This commit is contained in:
parent
de8c195eaf
commit
669d89c108
6 changed files with 107 additions and 4 deletions
|
|
@ -43,6 +43,7 @@ public:
|
|||
|
||||
// Authentication
|
||||
void authenticate(const std::string& username, const std::string& password);
|
||||
void authenticateWithHash(const std::string& username, const std::vector<uint8_t>& authHash);
|
||||
|
||||
// Realm list
|
||||
void requestRealmList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue