MCPcopy Create free account
hub / github.com/comaps/comaps / AuthorizePassword

Method AuthorizePassword

libs/editor/osm_auth.cpp:328–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328bool 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/*

Callers 3

OnActionMethod · 0.80
CreateAPIFunction · 0.80
UNIT_TESTFunction · 0.80

Calls 2

FetchSessionIdFunction · 0.85
LoginUserPasswordFunction · 0.85

Tested by 2

CreateAPIFunction · 0.64
UNIT_TESTFunction · 0.64