mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
Improve 2FA/PIN flow: prefill + clearer failure
This commit is contained in:
parent
62a49644a5
commit
2082ef1422
4 changed files with 68 additions and 9 deletions
|
|
@ -45,7 +45,9 @@ public:
|
|||
|
||||
// Authentication
|
||||
void authenticate(const std::string& username, const std::string& password);
|
||||
void authenticate(const std::string& username, const std::string& password, const std::string& pin);
|
||||
void authenticateWithHash(const std::string& username, const std::vector<uint8_t>& authHash);
|
||||
void authenticateWithHash(const std::string& username, const std::vector<uint8_t>& authHash, const std::string& pin);
|
||||
// Optional: when the auth server requires a PIN (securityFlags & 0x01), call this to continue.
|
||||
// PIN must be 4-10 digits.
|
||||
void submitPin(const std::string& pin);
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ private:
|
|||
int expansionIndex = 0; // Index into expansion registry profiles
|
||||
bool authenticating = false;
|
||||
bool showPassword = false;
|
||||
bool pinAutoSubmitted_ = false;
|
||||
|
||||
// Status
|
||||
std::string statusMessage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue