Adding Authenticator doc.

This commit is contained in:
stephb9959
2022-02-02 09:29:58 -08:00
parent ad38d8e84c
commit 3e0ecda9d6
3 changed files with 4 additions and 2 deletions

View File

@@ -234,6 +234,7 @@ 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