mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-03 04:07:45 +00:00
Typos and security verification.
This commit is contained in:
@@ -30,6 +30,19 @@ namespace uCentral {
|
||||
auto password = GetS(uCentral::RESTAPI::Protocol::PASSWORD, Obj);
|
||||
auto newPassword = GetS(uCentral::RESTAPI::Protocol::NEWPASSWORD, Obj);
|
||||
|
||||
ParseParameters(Request);
|
||||
|
||||
if(GetParameter("forgotPassword","false") == "true") {
|
||||
// Send an email to the userId
|
||||
SecurityObjects::UserInfoAndPolicy UInfo;
|
||||
AuthService()->SendEmailToUser(userId,AuthService::FORGOT_PASSWORD);
|
||||
UInfo.webtoken.userMustChangePassword=true;
|
||||
Poco::JSON::Object ReturnObj;
|
||||
UInfo.webtoken.to_json(ReturnObj);
|
||||
ReturnObject(Request, ReturnObj, Response);
|
||||
return;
|
||||
}
|
||||
|
||||
Poco::toLowerInPlace(userId);
|
||||
SecurityObjects::UserInfoAndPolicy UInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user