Add a warning that secret argument is insecure.

Piotr Pawlow [2017-03-19 19:30:00]
Add a warning that secret argument is insecure.
Filename
auth.php
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');
ViewGit