Typos and security verification.

This commit is contained in:
stephb9959
2021-07-11 22:49:48 -07:00
parent e073e75480
commit 1e54c54325
11 changed files with 77 additions and 21 deletions

View File

@@ -35,7 +35,8 @@ namespace uCentral {
if(GetParameter("forgotPassword","false") == "true") {
// Send an email to the userId
SecurityObjects::UserInfoAndPolicy UInfo;
AuthService()->SendEmailToUser(userId,AuthService::FORGOT_PASSWORD);
if(AuthService::SendEmailToUser(userId,AuthService::FORGOT_PASSWORD))
Logger_.information(Poco::format("Send password reset link to %s",userId));
UInfo.webtoken.userMustChangePassword=true;
Poco::JSON::Object ReturnObj;
UInfo.webtoken.to_json(ReturnObj);