summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2015-01-25 22:28:51 +0100
committercos <cos>2015-01-25 22:29:07 +0100
commit06f9cbb3222ce11a029df2eaa79a7a73de574b67 (patch)
tree14d6511e0aa27bf8f5d85f1e1da7771e6ce72fdd
parent209586b679ddf939d77ffa3238e2e8831667d854 (diff)
downloadmat-06f9cbb3222ce11a029df2eaa79a7a73de574b67.zip
Actually add authenticate_session script, as intended in 7ac05db.
-rwxr-xr-xauthenticate_session5
1 files changed, 5 insertions, 0 deletions
diff --git a/authenticate_session b/authenticate_session
new file mode 100755
index 0000000..8995080
--- /dev/null
+++ b/authenticate_session
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+AUTH="'authenticated' => 'yes'"
+
+sed "s/\('_SESSION_REMOTE_ADDR'\)/$AUTH, \1/"