| 326 | } |
| 327 | |
| 328 | bool OsmOAuth::AuthorizePassword(string const & login, string const & password) |
| 329 | { |
| 330 | SessionID const sid = FetchSessionId(); |
| 331 | if (!LoginUserPassword(login, password, sid)) |
| 332 | return false; |
| 333 | m_oauth2token = FetchAccessToken(sid); |
| 334 | return true; |
| 335 | } |
| 336 | |
| 337 | /// @todo OSM API to reset password has changed and should be updated |
| 338 | /* |