mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-01 19:27:59 +00:00
Implementing several adjustments for security reasons.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user