| 160 | } |
| 161 | |
| 162 | void OsmOAuth::LogoutUser(SessionID const & sid) const |
| 163 | { |
| 164 | HttpClient request(m_baseUrl + "/logout"); |
| 165 | request.SetCookies(sid.m_cookies); |
| 166 | if (!request.RunHttpRequest()) |
| 167 | MYTHROW(NetworkError, ("LogoutUser Network error while connecting to", request.UrlRequested())); |
| 168 | if (request.ErrorCode() != HTTP::OK) |
| 169 | MYTHROW(LogoutUserError, (DebugPrint(request))); |
| 170 | } |
| 171 | |
| 172 | bool OsmOAuth::LoginUserPassword(string const & login, string const & password, SessionID const & sid) const |
| 173 | { |
nothing calls this directly
no test coverage detected