Fix bug in anonymous activation (need to set login method as "anonymous")

This commit is contained in:
Grégory Soutadé 2022-03-19 15:19:27 +01:00
parent e149af9e17
commit 5d3112bc38
1 changed files with 4 additions and 1 deletions

View File

@ -671,7 +671,10 @@ namespace gourou
pugi::xml_node signIn = signInRequest.append_child("adept:signIn");
signIn.append_attribute("xmlns:adept") = ADOBE_ADEPT_NS;
std::string loginMethod = user->getLoginMethod();
if (loginMethod.size())
if (adobeID == "anonymous")
signIn.append_attribute("method") = "anonymous";
else if (loginMethod.size())
signIn.append_attribute("method") = loginMethod.c_str();
else
signIn.append_attribute("method") = "AdobeID";