mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-05 05:08:06 +00:00
Support both internal and external rttys
This commit is contained in:
@@ -731,7 +731,7 @@ void RESTAPI_device_commandHandler::MakeRequest() {
|
||||
|
||||
if(RTTYS_server()->UseInternal()) {
|
||||
Rtty.Token = MicroService::instance().CreateHash(UserInfo_.webtoken.refresh_token_ + std::to_string(std::time(nullptr))).substr(0,32);
|
||||
RTTYS_server()->CreateEndPoint(Rtty.ConnectionId,Rtty.Token);
|
||||
RTTYS_server()->CreateEndPoint(Rtty.ConnectionId,Rtty.Token, UserInfo_.userinfo.email, SerialNumber_);
|
||||
}
|
||||
|
||||
Poco::JSON::Object ReturnedObject;
|
||||
|
||||
Reference in New Issue
Block a user