Browse code

implement sending notification e-mails (with the corresponding config file support)

Dario Rodriguez authored on 24/07/2014 11:03:47
Showing 1 changed files
... ...
@@ -6,7 +6,7 @@
6 6
  * Header file
7 7
  *
8 8
  * Author: Dario Rodriguez dario@softhome.net
9
- * This progran is licensed under the terms of the Affero GPL v1+
9
+ * This program is licensed under the terms of the Affero GPL v1+
10 10
  */
11 11
 
12 12
 #ifndef KAKUMEI_H
Browse code

add authid cookie to complement the session in QUERY_STRING

Dario Rodriguez authored on 13/07/2014 21:41:07
Showing 1 changed files
... ...
@@ -24,7 +24,8 @@
24 24
 #define SESSIONSDIR "data/sessions"
25 25
 #define MAXUSERSIZE 32
26 26
 #define MAXPASSWDSIZE 64
27
-#define SESSIONSIZE 33
27
+#define SESSIONSIZE 32
28
+#define AUTHIDSIZE 32
28 29
 
29 30
 typedef struct kakumei {
30 31
         sselect *ssel;
Browse code

add config file

Dario Rodriguez authored on 11/07/2014 10:53:59
Showing 1 changed files
... ...
@@ -14,6 +14,7 @@
14 14
 
15 15
 #include "socklib.h"
16 16
 #include "webkernel.h"
17
+#include "kakumei_config.h"
17 18
 
18 19
 #define INVITATIONUSER "invitation"
19 20
 #define DATADIR "data"
... ...
@@ -28,6 +29,7 @@
28 29
 typedef struct kakumei {
29 30
         sselect *ssel;
30 31
         wk *web;
32
+        kaconfig *config;
31 33
 } kakumei;
32 34
 
33 35
 int kakumei_uservalid(kakumei *ka, char *username); /* no unallowed characters */
Browse code

fix session handling (wasn't deleting old sessions)

Dario Rodriguez authored on 26/06/2014 19:29:31
Showing 1 changed files
... ...
@@ -23,7 +23,7 @@
23 23
 #define SESSIONSDIR "data/sessions"
24 24
 #define MAXUSERSIZE 32
25 25
 #define MAXPASSWDSIZE 64
26
-#define SESSIONSIZE 65
26
+#define SESSIONSIZE 33
27 27
 
28 28
 typedef struct kakumei {
29 29
         sselect *ssel;
Browse code

finish new user creation

Dario Rodriguez authored on 25/06/2014 20:52:20
Showing 1 changed files
... ...
@@ -22,6 +22,7 @@
22 22
 #define POSTSDIR "data/posts"
23 23
 #define SESSIONSDIR "data/sessions"
24 24
 #define MAXUSERSIZE 32
25
+#define MAXPASSWDSIZE 64
25 26
 #define SESSIONSIZE 65
26 27
 
27 28
 typedef struct kakumei {
Browse code

implement kakumei_session.c

Dario Rodriguez authored on 25/06/2014 20:18:39
Showing 1 changed files
... ...
@@ -21,6 +21,8 @@
21 21
 #define USERSDIR "data/users"
22 22
 #define POSTSDIR "data/posts"
23 23
 #define SESSIONSDIR "data/sessions"
24
+#define MAXUSERSIZE 32
25
+#define SESSIONSIZE 65
24 26
 
25 27
 typedef struct kakumei {
26 28
         sselect *ssel;
Browse code

implement kakumei_pass, add ÃÃlibscrypt to Makefile

Dario Rodriguez authored on 25/06/2014 19:22:09
Showing 1 changed files
... ...
@@ -27,4 +27,7 @@ typedef struct kakumei {
27 27
         wk *web;
28 28
 } kakumei;
29 29
 
30
+int kakumei_uservalid(kakumei *ka, char *username); /* no unallowed characters */
31
+int kakumei_userexists(kakumei *ka, char *username); /* it has a directory with a passwd file */
32
+
30 33
 #endif
Browse code

put session handling in separate source file

Dario Rodriguez authored on 25/06/2014 17:02:32
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+/*
2
+ * kakumei.h
3
+ *
4
+ * Private group web.
5
+ *
6
+ * Header file
7
+ *
8
+ * Author: Dario Rodriguez dario@softhome.net
9
+ * This progran is licensed under the terms of the Affero GPL v1+
10
+ */
11
+
12
+#ifndef KAKUMEI_H
13
+#define KAKUMEI_H
14
+
15
+#include "socklib.h"
16
+#include "webkernel.h"
17
+
18
+#define INVITATIONUSER "invitation"
19
+#define DATADIR "data"
20
+#define INVITESDIR "data/invitations"
21
+#define USERSDIR "data/users"
22
+#define POSTSDIR "data/posts"
23
+#define SESSIONSDIR "data/sessions"
24
+
25
+typedef struct kakumei {
26
+        sselect *ssel;
27
+        wk *web;
28
+} kakumei;
29
+
30
+#endif