summaryrefslogtreecommitdiffstats
path: root/web/lib/config.inc.php.proto
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-08-11 17:35:03 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-08-11 21:04:38 +0200
commit1c9db1d1f14d5f83d8bd7dbbd535cf109680471f (patch)
treef0d43b6b7364deed54fb8317e7d8b0ffb52ed5a0 /web/lib/config.inc.php.proto
parenta47f4915dcc057b8b57130886e009db9ca6afd44 (diff)
downloadaur-1c9db1d1f14d5f83d8bd7dbbd535cf109680471f.tar.gz
aur-1c9db1d1f14d5f83d8bd7dbbd535cf109680471f.tar.xz
Add a configuration setting to disallow HTTP login
If this is enabled, do not show the login form and display a note suggesting to switch to a secure connection if a user accesses the site via HTTP. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/config.inc.php.proto')
-rw-r--r--web/lib/config.inc.php.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/lib/config.inc.php.proto b/web/lib/config.inc.php.proto
index f710844d..0f672abe 100644
--- a/web/lib/config.inc.php.proto
+++ b/web/lib/config.inc.php.proto
@@ -71,3 +71,6 @@ $PERSISTENT_COOKIE_TIMEOUT = 60 * 60 * 24 * 30;
# please ensure "upload_max_filesize" is additionally set to no more than 3M,
# otherwise this check might be easy to bypass (FS#22991 for details)
$MAX_FILESIZE_UNCOMPRESSED = 1024 * 1024 * 8;
+
+# Allow HTTPs logins only
+$DISABLE_HTTP_LOGIN = true;