Completed
Pull Request — master (#2472)
by Kevin
11:52
created
html/inc/token.inc 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -27,6 +27,10 @@  discard block
 block discarded – undo
27 27
 define("TOKEN_DURATION_ONE_DAY", 86400);
28 28
 define("TOKEN_DURATION_ONE_WEEK", 604800);
29 29
 
30
+/**
31
+ * @param string $type
32
+ * @param integer $duration
33
+ */
30 34
 function create_token($userid, $type, $duration) {
31 35
     $token = random_string();
32 36
     $now = time();
@@ -46,6 +50,9 @@  discard block
 block discarded – undo
46 50
     return $result;
47 51
 }
48 52
 
53
+/**
54
+ * @param string $type
55
+ */
49 56
 function is_valid_token($userid, $token, $type) {
50 57
     $boincToken = BoincToken::lookup_valid_token($userid, $token, $type);
51 58
     if ( $boincToken == null ) {
Please login to merge, or discard this patch.