This website works better with JavaScript.
Home
Explore
Help
Sign In
p3k
/
Atlas
mirror of
https://github.com/aaronpk/Atlas.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
fix token check
main
Aaron Parecki
2 years ago
parent
6ab7bbab61
commit
29bdd2fba2
Failed to extract signature
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
;
Write
Preview
Loading…
Cancel
Save