Added abuse test

This commit is contained in:
Eldad Fux
2020-06-15 16:54:19 +03:00
parent d007efe9de
commit f4023dcfb9
2 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -13,7 +13,8 @@
- New UI micro-interactions and styles fixes (@AnatoleLucet)
- UI performance & accessibility improvments
- Updated ClamAV conntainer to version 1.0.9
- All emails are now sent asynchronously for improved performance (@TorstenDittmann)
- All emails are now sent asynchronously for improved performance (@)
- New Doctor CLI to debug the Appwrite server ([#415](https://github.com/appwrite/appwrite/issues/415))
## Bug Fixes
+11
View File
@@ -89,6 +89,17 @@ $cli
//throw $th;
}
try {
if($request->getServer('_APP_OPTIONS_ABUSE', 'disabled') === 'disabled') {
Console::log('🔴 Abuse protection is enabled');
}
else {
Console::log('🟢 Abuse protection is enabled');
}
} catch (\Throwable $th) {
//throw $th;
}
sleep(1);
try {