Force legacy mode, instance level and user level

This commit is contained in:
Pablo Ferreiro 2022-03-11 20:50:11 +01:00
parent db3799c344
commit 73dd93420f
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
9 changed files with 40 additions and 12 deletions

View file

@ -20,4 +20,10 @@ class SettingsController {
$url = Misc::url('/settings');
header("Location: {$url}");
}
static public function api() {
$_POST['legacy'] ?? Cookies::set('api-legacy', '1');
$url = Misc::url('/settings');
header("Location: {$url}");
}
}