Completed
Pull Request — master (#2472)
by Kevin
12:18
created
html/inc/token.inc 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -25,6 +25,10 @@  discard block
 block discarded – undo
25 25
 // Constants for token durations
26 26
 define("TOKEN_DURATION_ONE_DAY", 86400);
27 27
 
28
+/**
29
+ * @param string $type
30
+ * @param integer $duration
31
+ */
28 32
 function create_token($userid, $type, $duration) {
29 33
     $token = random_string();
30 34
     $now = time();
@@ -37,6 +41,9 @@  discard block
 block discarded – undo
37 41
     return $token;
38 42
 }
39 43
 
44
+/**
45
+ * @param string $type
46
+ */
40 47
 function is_valid_token($userid, $token, $type) {
41 48
     $boincToken = BoincToken::lookup_valid_token($userid, $token, $type);
42 49
     if ( $boincToken == null ) {
Please login to merge, or discard this patch.
html/inc/delete_account.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
     );
28 28
 }
29 29
 
30
+/**
31
+ * @param null|integer $userid
32
+ */
30 33
 function check_delete_account_token($userid, $token) {
31 34
     if( !is_valid_token($userid, $token, TOKEN_TYPE_DELETE_ACCOUNT) ) {
32 35
         sleep(LOGIN_FAIL_SLEEP_SEC);
Please login to merge, or discard this patch.