chiark / gitweb /
'confirm' now logs the user in (and sends back their username so the
[disorder] / lib / cookies.c
index 585fd7e7a08787979737190c9eb7f51a6bef76d5..bc8e9b087a3021388c420e0666aff60909f75d85 100644 (file)
@@ -38,7 +38,7 @@
 #include "mem.h"
 #include "log.h"
 #include "printf.h"
-#include "mime.h"
+#include "base64.h"
 #include "configuration.h"
 #include "kvp.h"
 #include "rights.h"
@@ -198,7 +198,7 @@ char *verify_cookie(const char *cookie, rights_type *rights) {
   }
   password = kvp_get(k, "password");
   if(!password) password = "";
-  if(parse_rights(kvp_get(k, "rights"), rights))
+  if(parse_rights(kvp_get(k, "rights"), rights, 1))
     return 0;
   /* construct the expected subject.  We re-encode the timestamp and the
    * password. */