chiark / gitweb /
The redirection after login now works properly.
[disorder] / lib / client.c
index b7292c51f55d5c2062f87f8ee87c96f4da9b49b7..dc1d44ea4215c832d1f1a9e7e4264e89c86612dd 100644 (file)
@@ -1148,6 +1148,14 @@ int disorder_make_cookie(disorder_client *c, char **cookiep) {
                 cookiep);
 }
 
+/** @brief Revoke the cookie used by this session
+ * @param c Client
+ * @return 0 on success, non-0 on error
+ */
+int disorder_revoke(disorder_client *c) {
+  return disorder_simple(c, 0, "revoke", (char *)0);
+}
+
 /*
 Local Variables:
 c-basic-offset:2