mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2026-01-27 02:23:03 +00:00
Implementing several adjustments for security reasons.
This commit is contained in:
@@ -25,10 +25,8 @@ namespace OpenWifi {
|
||||
class SMSSender : public SubSystemServer {
|
||||
public:
|
||||
static SMSSender *instance() {
|
||||
if (instance_ == nullptr) {
|
||||
instance_ = new SMSSender;
|
||||
}
|
||||
return instance_;
|
||||
static SMSSender instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
int Start() final;
|
||||
@@ -39,7 +37,6 @@ namespace OpenWifi {
|
||||
bool IsNumberValid(const std::string &Number, const std::string &UserName);
|
||||
[[nodiscard]] bool Send(const std::string &PhoneNumber, const std::string &Message);
|
||||
private:
|
||||
static SMSSender * instance_;
|
||||
std::string Provider_;
|
||||
bool Enabled_=false;
|
||||
std::vector<SMSValidationCacheEntry> Cache_;
|
||||
|
||||
Reference in New Issue
Block a user