forked from Telodendria/Telodendria
Fix logic error
This commit is contained in:
parent
f365f94389
commit
56105c8a61
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue