| 56 | |
| 57 | |
| 58 | bool 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 | |
| 71 | bool SapphireApi::createAccount( const std::string& username, const std::string& pass, std::string& sId ) |
| 72 | { |
no test coverage detected