Browse Source

fix token check

main
Aaron Parecki 2 years ago
parent
commit
29bdd2fba2
Failed to extract signature
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/helpers.php

+ 3
- 0
lib/helpers.php View File

@ -34,6 +34,9 @@ function is_authenticated($params) {
return false;
$valid_tokens = array_filter(file($token_file));
array_walk($valid_tokens, function(&$val) {
$val = trim($val);
});
if(in_array($params['token'], $valid_tokens))
return true;

Loading…
Cancel
Save