mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-02 03:37:51 +00:00
Adding Authenticator doc.
This commit is contained in:
@@ -108,7 +108,6 @@ namespace OpenWifi {
|
|||||||
uint64_t Now = std::time(nullptr);
|
uint64_t Now = std::time(nullptr);
|
||||||
ErrorCode = 0;
|
ErrorCode = 0;
|
||||||
if(Hint!=Cache_.end() && Subscriber==Hint->second.Subscriber && (Now-Hint->second.Start)<(15*60)) {
|
if(Hint!=Cache_.end() && Subscriber==Hint->second.Subscriber && (Now-Hint->second.Start)<(15*60)) {
|
||||||
std::cout << "NI:" << NextIndex << " S:" << Hint->second.Secret << " C:" << Code << std::endl;
|
|
||||||
std::string Expecting;
|
std::string Expecting;
|
||||||
if (NextIndex == 1 && Hint->second.Verifications == 0 && ValidateCode(Hint->second.Secret, Code, Expecting)) {
|
if (NextIndex == 1 && Hint->second.Verifications == 0 && ValidateCode(Hint->second.Secret, Code, Expecting)) {
|
||||||
NextIndex++;
|
NextIndex++;
|
||||||
|
|||||||
Reference in New Issue
Block a user