Skip to content

Commit a9412a7

Browse files
goatzillaxthemactep
authored andcommitted
add auth check to json-telegrambot.cgi (#1090)
1 parent b0adae7 commit a9412a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package/thingino-webui/files/www/x/json-telegrambot.cgi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/sh
2+
3+
# Check authentication
4+
. /var/www/x/auth.sh
5+
require_auth
6+
27
config_file=/etc/telegrambot.json
38
if [ "$REQUEST_METHOD" = "POST" ]; then
49
cl=${CONTENT_LENGTH:-0}

0 commit comments

Comments
 (0)