summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-01 15:24:18 +0300
committerAndrew Dolgov <[email protected]>2021-03-01 15:24:18 +0300
commit6359259dbb1e8d5b569f569a7089abffd9259d30 (patch)
tree69fc8e95b55d4c9ab0e3345e6f52d3c5632f038a /api
parent320503dd3911de93d059ebe1ba8b96004d8f6b03 (diff)
simplify internal authentication code and bump default algo to SSHA-512
Diffstat (limited to 'api')
-rw-r--r--api/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/index.php b/api/index.php
index 430082f16..750a95721 100644
--- a/api/index.php
+++ b/api/index.php
@@ -46,7 +46,7 @@
UserHelper::load_user_plugins($_SESSION["uid"]);
}
- $method = strtolower($_REQUEST["op"]);
+ $method = strtolower($_REQUEST["op"] ?? "");
$handler = new API($_REQUEST);