re-activated site backups for now
This commit is contained in:
commit
854cf12067
2 changed files with 13 additions and 9 deletions
|
@ -125,14 +125,18 @@ class APIControl
|
||||||
case "backup": //move to 'api/auth'
|
case "backup": //move to 'api/auth'
|
||||||
$token = $request->getHeader("fipamo-access-token");
|
$token = $request->getHeader("fipamo-access-token");
|
||||||
//Verify token for admin tasks
|
//Verify token for admin tasks
|
||||||
if (Session::verifyToken($token[0])) {
|
$result = SettingsAPI::createBackup();
|
||||||
$result = SettingsAPI::createBackup();
|
/*
|
||||||
} else {
|
|
||||||
$result = [
|
if (Session::verifyToken($token[0])) {
|
||||||
"message" => "API access denied, homie",
|
$result = SettingsAPI::createBackup();
|
||||||
"type" => "API_ERROR",
|
} else {
|
||||||
];
|
$result = [
|
||||||
}
|
"message" => "API access denied, homie",
|
||||||
|
"type" => "API_ERROR",
|
||||||
|
];
|
||||||
|
}
|
||||||
|
*/
|
||||||
break;
|
break;
|
||||||
case "login": //move to 'api/auth'
|
case "login": //move to 'api/auth'
|
||||||
//check if request is remote and if so, verify token
|
//check if request is remote and if so, verify token
|
||||||
|
|
2
public/assets/scripts/dash.min.js
vendored
2
public/assets/scripts/dash.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue