Show not logged in message on failed login.
authorIain Patterson <me@iain.cx>
Tue, 25 Jun 2013 10:16:07 +0000 (06:16 -0400)
committerIain Patterson <me@iain.cx>
Tue, 25 Jun 2013 10:16:07 +0000 (06:16 -0400)
Configure the server ErrorDocument to login.php and allow access to that
file for any client.  The message will then be shown with full
stylesheet to clients who fail to authenticate.

www/.htaccess
www/login.php [new symlink]

index cab738c..e56e28a 100644 (file)
@@ -1,4 +1,5 @@
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !/style\.css$
 RewriteCond %{REQUEST_FILENAME} !/logo\.png$
+RewriteCond %{REQUEST_FILENAME} !/login\.php$
 RewriteRule ^(.+) index.php [L]
diff --git a/www/login.php b/www/login.php
new file mode 120000 (symlink)
index 0000000..0012f7d
--- /dev/null
@@ -0,0 +1 @@
+index.php
\ No newline at end of file