I missed an instance of strcmp()

This commit is contained in:
Jordan Bancino 2023-05-06 23:02:46 +00:00
parent 0b11b97022
commit a2eec3946c

View file

@ -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);