mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05: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
@ -133,7 +133,7 @@ bool RsJsonApi::parseToken(
|
||||
const auto tkLen = clear_token.length();
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user