aboutsummaryrefslogtreecommitdiff
path: root/server/src/forum/forum.h
diff options
context:
space:
mode:
authorauth <[email protected]>2020-07-14 16:16:02 +0200
committerauth <[email protected]>2020-07-14 16:16:02 +0200
commit275010eaa0a46012fec547efdd76256b25e47f54 (patch)
tree00d9e0a19424c3e3d81e2ed74d7986da987123d1 /server/src/forum/forum.h
parentForum integration. (diff)
downloadloader-275010eaa0a46012fec547efdd76256b25e47f54.tar.xz
loader-275010eaa0a46012fec547efdd76256b25e47f54.zip
Client login handling on server.
More error handling for forum responses.
Diffstat (limited to 'server/src/forum/forum.h')
-rw-r--r--server/src/forum/forum.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/src/forum/forum.h b/server/src/forum/forum.h
index df18cb4..d0b1a31 100644
--- a/server/src/forum/forum.h
+++ b/server/src/forum/forum.h
@@ -4,9 +4,10 @@
// XenForo forum api wrapper
struct user_data {
- std::string hwid;
- bool banned;
- bool active;
+ std::string hwid;
+ bool banned;
+ bool active;
+ int id;
};
enum forum_response { api_fail = 0, api_error, api_timeout, api_success };
@@ -21,4 +22,6 @@ class xenforo_forum {
void init(const std::string_view link, const std::string_view key);
int check_login(const std::string_view username,
const std::string_view password, user_data &data);
+ bool edit(const int uid, const std::string_view field,
+ const std::string_view val);
}; \ No newline at end of file