Adding Authenticator doc.

This commit is contained in:
stephb9959
2022-02-02 10:03:20 -08:00
parent 3e0ecda9d6
commit a0f9abea88
3 changed files with 4 additions and 5 deletions

View File

@@ -234,7 +234,6 @@ namespace OpenWifi {
std::string Secret;
Existing.userTypeProprietaryInfo.mobiles.clear();
if(Existing.userTypeProprietaryInfo.authenticatorSecret.empty() && TotpCache()->CompleteValidation(UserInfo_.userinfo,false,Secret)) {
std::cout << "Secret:" << Secret << std::endl;
Existing.userTypeProprietaryInfo.authenticatorSecret = Secret;
} else if (!Existing.userTypeProprietaryInfo.authenticatorSecret.empty()) {
// we allow someone to use their old secret