git://git.iain.cx/iain
/
readifood.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe4e556
)
Show not logged in message on failed login.
author
Iain Patterson
<me@iain.cx>
Tue, 25 Jun 2013 10:16:07 +0000
(06:16 -0400)
committer
Iain 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
patch
|
blob
|
history
www/login.php
[new symlink]
patch
|
blob
diff --git
a/www/.htaccess
b/www/.htaccess
index
cab738c
..
e56e28a
100644
(file)
--- a/
www/.htaccess
+++ b/
www/.htaccess
@@
-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
+++ b/
www/login.php
@@ -0,0
+1
@@
+index.php
\ No newline at end of file