re-activated site backups for now
This commit is contained in:
commit
854cf12067
2 changed files with 13 additions and 9 deletions
|
@ -125,6 +125,9 @@ class APIControl
|
|||
case "backup": //move to 'api/auth'
|
||||
$token = $request->getHeader("fipamo-access-token");
|
||||
//Verify token for admin tasks
|
||||
$result = SettingsAPI::createBackup();
|
||||
/*
|
||||
|
||||
if (Session::verifyToken($token[0])) {
|
||||
$result = SettingsAPI::createBackup();
|
||||
} else {
|
||||
|
@ -133,6 +136,7 @@ class APIControl
|
|||
"type" => "API_ERROR",
|
||||
];
|
||||
}
|
||||
*/
|
||||
break;
|
||||
case "login": //move to 'api/auth'
|
||||
//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