projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new users management (incomplete)
[brisk.git]
/
doc
/
ARCHITECTURE.txt
diff --git
a/doc/ARCHITECTURE.txt
b/doc/ARCHITECTURE.txt
index
d074067
..
a28d91a
100644
(file)
--- a/
doc/ARCHITECTURE.txt
+++ b/
doc/ARCHITECTURE.txt
@@
-2,6
+2,16
@@
Sparse documentation about Brisk.
==== brisk/table/user relationships ====
==== brisk/table/user relationships ====
+=== points management ===
+
+read from db:
+ * continue a match
+ * calculate placings
+ * calculate explain
+
+write to db:
+ * finish a game
+
=== in the room ===
// when standup
=== in the room ===
// when standup
@@
-46,7
+56,7
@@
index.php:
--- CLI ------------
POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value))
--- CLI ------------
POST index.php with passid_private field equal to calcMD5(tokens[1]+calcMD5(form.elements['passid'].value))
-
+ add_user -> validate_name, login_verify
===== Game Lifecycle =====
===== Game Lifecycle =====
@@
-72,3
+82,31
@@
$ret = $user->maincheck($old_stat, $old_subst, $old_step, $this->rd_stat, $this-
$splashdate, $table_idx, $table_token))
$user->rd_transp->chunk($this->rd_scristp++, $ret);
$splashdate, $table_idx, $table_token))
$user->rd_transp->chunk($this->rd_scristp++, $ret);
+
+===== New users workflow =====
+
+status | | DB |
+---------- |------+--------------------+
+unknown |
+ V
+ brisk -> mail-table
+MAILED | |
+ V |
+ user |
+ | |
+ V |
+ mailbox |
+ | |
+ V |
+ procmail |
+ | |
+ V |
+ check with mail-table |
+ and update DB <----+
+ (needs ad-hoc page)
+TOBECHK |
+ V
+ authorize
+normal |
+ V
+