MCPcopy Create free account
hub / github.com/SapphireServer/Sapphire / insertSession

Method insertSession

src/api/SapphireApi.cpp:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58bool SapphireApi::insertSession( const uint32_t accountId, std::string& sId )
59{
60 // create session for the new sessionid and store to sessionlist
61 auto pSession = std::make_shared< Session >();
62 pSession->setAccountId( accountId );
63 pSession->setSessionId( ( uint8_t* ) sId.c_str() );
64
65 m_sessionMap[ sId ] = pSession;
66
67 return true;
68
69}
70
71bool SapphireApi::createAccount( const std::string& username, const std::string& pass, std::string& sId )
72{

Callers 1

insertSessionFunction · 0.80

Calls 2

setAccountIdMethod · 0.45
setSessionIdMethod · 0.45

Tested by

no test coverage detected