Implementing several adjustments for security reasons.

This commit is contained in:
stephb9959
2021-11-09 11:57:38 -08:00
parent a96f673380
commit 00742a5d0a
2 changed files with 0 additions and 24 deletions

View File

@@ -25,30 +25,22 @@ namespace OpenWifi {
Running_ = true ;
while(Running_) {
std::cout << __func__ << ":" << __LINE__ << std::endl;
Poco::Thread::trySleep(2000);
std::cout << __func__ << ":" << __LINE__ << std::endl;
if(!Running_)
break;
std::cout << __func__ << ":" << __LINE__ << std::endl;
std::vector<SecurityObjects::ActionLink> Links;
{
std::lock_guard G(Mutex_);
StorageService()->GetActions(Links);
}
std::cout << __func__ << ":" << __LINE__ << std::endl;
if(Links.empty())
continue;
std::cout << __func__ << ":" << __LINE__ << std::endl;
for(auto &i:Links) {
std::cout << __func__ << ":" << __LINE__ << std::endl;
if(!Running_)
break;
std::cout << __func__ << ":" << __LINE__ << std::endl;
if(i.action=="forgot_password") {
if(AuthService::SendEmailToUser(i.id, i.userId, AuthService::FORGOT_PASSWORD)) {
Logger_.information(Poco::format("Send password reset link to %s",i.userId));