Fixing Google Authenticator

This commit is contained in:
stephb9959
2022-01-31 14:14:33 -08:00
parent b3f1f35bb4
commit 29da9b4b8e
3 changed files with 11 additions and 4 deletions

View File

@@ -211,8 +211,7 @@ namespace OpenWifi {
if(RawObject->has("userTypeProprietaryInfo")) {
if(NewUser.userTypeProprietaryInfo.mfa.enabled) {
if (!NewUser.userTypeProprietaryInfo.mfa.method.empty() &&
!MFAMETHODS::Validate(NewUser.userTypeProprietaryInfo.mfa.method)) {
if (!MFAMETHODS::Validate(NewUser.userTypeProprietaryInfo.mfa.method)) {
return BadRequest(RESTAPI::Errors::BadMFAMethod);
}