Clean up error flow for sso
error messages can now propagate to the user's browser
This commit is contained in:
parent
e7fee4c6ce
commit
da179d9930
3 changed files with 68 additions and 48 deletions
|
@ -1740,7 +1740,6 @@ public:
|
|||
} else {
|
||||
scode = 200;
|
||||
sprintf(resBuf, ssoResponseTemplate, "Authentication Successful. You may now access the network.");
|
||||
responseBody = std::string(resBuf);
|
||||
}
|
||||
} else {
|
||||
// not an object? We got a problem
|
||||
|
@ -1750,7 +1749,8 @@ public:
|
|||
|
||||
zeroidc::free_cstr(code);
|
||||
zeroidc::free_cstr(ret);
|
||||
|
||||
|
||||
responseBody = std::string(resBuf);
|
||||
responseContentType = "text/html";
|
||||
return scode;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue