mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 13:54:27 -04:00
Fixup token parsing
If the token is like "somethingA:somethinchB:somethingC" then user is "somethingA" and password is "somethinchB:somethingC"
This commit is contained in:
parent
b0358759e5
commit
7757c685c5
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ bool RsJsonApi::parseToken(
|
||||||
const auto tkLen = clear_token.length();
|
const auto tkLen = clear_token.length();
|
||||||
|
|
||||||
for(uint32_t i=0; i < tkLen; ++i)
|
for(uint32_t i=0; i < tkLen; ++i)
|
||||||
if(clear_token[i] == ':') colonIndex = i;
|
if(clear_token[i] == ':') { colonIndex = i; break; }
|
||||||
|
|
||||||
user = clear_token.substr(0, colonIndex);
|
user = clear_token.substr(0, colonIndex);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue