Fix logic error

This commit is contained in:
Jordan Bancino 2023-01-07 18:24:16 +00:00
parent f365f94389
commit 56105c8a61

View file

@ -234,7 +234,7 @@ finish:
HttpResponseStatus(args->context, HTTP_BAD_REQUEST);
response = MatrixErrorCreate(M_INVALID_USERNAME);
}
else if (UserExists(db, username))
else if (!UserExists(db, username))
{
response = HashMapCreate();
HashMapSet(response, "available", JsonValueBoolean(1));