mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-01 11:17:51 +00:00
Changing SMS/MFA
This commit is contained in:
@@ -274,9 +274,9 @@ namespace OpenWifi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ChangingMFA =
|
bool ChangingMFA =
|
||||||
NewUser.userTypeProprietaryInfo.mfa.enabled && !Existing.userTypeProprietaryInfo.mfa.enabled;
|
NewUser.userTypeProprietaryInfo.mfa.method != Existing.userTypeProprietaryInfo.mfa.method;
|
||||||
Existing.userTypeProprietaryInfo.mfa.enabled = NewUser.userTypeProprietaryInfo.mfa.enabled;
|
|
||||||
|
|
||||||
|
Existing.userTypeProprietaryInfo.mfa.method = NewUser.userTypeProprietaryInfo.mfa.method;
|
||||||
auto PropInfo = RawObject->get("userTypeProprietaryInfo");
|
auto PropInfo = RawObject->get("userTypeProprietaryInfo");
|
||||||
if (ChangingMFA && NewUser.userTypeProprietaryInfo.mfa.method == MFAMETHODS::SMS) {
|
if (ChangingMFA && NewUser.userTypeProprietaryInfo.mfa.method == MFAMETHODS::SMS) {
|
||||||
auto PInfo = PropInfo.extract<Poco::JSON::Object::Ptr>();
|
auto PInfo = PropInfo.extract<Poco::JSON::Object::Ptr>();
|
||||||
|
|||||||
Reference in New Issue
Block a user