summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Pawlow <pp@siedziba.pl>2017-03-19 20:30:00 +0100
committerPiotr Pawlow <pp@siedziba.pl>2017-03-19 20:30:00 +0100
commitcc9b6ce77c7f3bb0b592fca04120178f089a8e16 (patch)
tree7ab96fc20baa2fa9f8ee9a3f61908fa11c7137f1
parenta120fa86554674a5d2e564568ccfe99046e9995b (diff)
Add a warning that secret argument is insecure.
-rw-r--r--auth.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/auth.php b/auth.php
index 739123a..5c0ef9b 100644
--- a/auth.php
+++ b/auth.php
@@ -22,6 +22,7 @@ $options = getopt("c:", [
'digits:',
'delay:'
]);
+if (isset($options['secret'])) echo "!!! PODAWANIE SEKRETU JAKO ARGUMENT NIE JEST BEZPIECZNE !!!\n";
if (isset($options['c'])) $config = load_config($options['c']); else $config = new stdClass();
$config_default = load_config(__DIR__.'/config_default.json');