aboutsummaryrefslogtreecommitdiff
path: root/close_direct_conversations
diff options
context:
space:
mode:
authorJulien Dessaux2019-08-06 19:55:04 +0200
committerJulien Dessaux2019-08-06 19:55:04 +0200
commit55821a92a240b5a3fdfcc45a07535a8e143dae6c (patch)
treecb396b01dcdce44b6a30e8259aeaff9e4b092525 /close_direct_conversations
parentMigrated the reading of login and password from cli to the common lib (diff)
downloadrocket-cli-client-55821a92a240b5a3fdfcc45a07535a8e143dae6c.tar.gz
rocket-cli-client-55821a92a240b5a3fdfcc45a07535a8e143dae6c.tar.bz2
rocket-cli-client-55821a92a240b5a3fdfcc45a07535a8e143dae6c.zip
Have the login function return the authToken
Diffstat (limited to '')
-rw-r--r--close_direct_conversations/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/close_direct_conversations/main.c b/close_direct_conversations/main.c
index 82bf851..9c723f9 100644
--- a/close_direct_conversations/main.c
+++ b/close_direct_conversations/main.c
@@ -28,7 +28,7 @@ int main(void)
if (password == NULL)
password = common_cli_get_password();
- if (restapi_login(login, password) == 0) {
+ if (restapi_login(login, password) != NULL) {
struct subscription* subscriptions = restapi_subscriptions_get();
printf("Active direct conversations :\n");