diff options
author | Julien Dessaux | 2019-08-06 19:55:04 +0200 |
---|---|---|
committer | Julien Dessaux | 2019-08-06 19:55:04 +0200 |
commit | 55821a92a240b5a3fdfcc45a07535a8e143dae6c (patch) | |
tree | cb396b01dcdce44b6a30e8259aeaff9e4b092525 /restapi/auth.h | |
parent | Migrated the reading of login and password from cli to the common lib (diff) | |
download | rocket-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-- | restapi/auth.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/restapi/auth.h b/restapi/auth.h index ce5ea10..0378095 100644 --- a/restapi/auth.h +++ b/restapi/auth.h @@ -1,10 +1,7 @@ #ifndef RESTAPI_AUTH_H_ #define RESTAPI_AUTH_H_ -extern char * userId; -extern char * authToken; - -char // returns 0 if ok, greater than 0 otherwise +const char * // returns authToken if ok, NULL otherwise restapi_login(const char* username, const char* password); void restapi_logout(void); |