forked from Telodendria/Telodendria
I missed an instance of strcmp()
This commit is contained in:
parent
0b11b97022
commit
a2eec3946c
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ UserDeleteToken(User * user, char *token)
|
|||
username = JsonValueAsString(HashMapGet(tokenJson, "user"));
|
||||
deviceId = JsonValueAsString(HashMapGet(tokenJson, "device"));
|
||||
|
||||
if (strcmp(username, UserGetName(user)) != 0)
|
||||
if (!StrEquals(username, UserGetName(user)))
|
||||
{
|
||||
/* Token does not match user, do not delete it */
|
||||
DbUnlock(db, tokenRef);
|
||||
|
|
Loading…
Reference in a new issue