diff options
author | Mark Pemberton <mpemberton5@gmail.com> | 2011-05-12 23:12:11 -0400 |
---|---|---|
committer | Mark Pemberton <mpemberton5@gmail.com> | 2011-05-12 23:12:11 -0400 |
commit | f18b8c04448bbcbf913349f8239d857a12b6410f (patch) | |
tree | fc2616fd9fa2802bbd33fbf32c31e873ba1d3d0d /www | |
parent | 23cdbb53d0ab881f3b1fc196ac17c477f5463386 (diff) | |
download | SemanticScuttle-origin/privatekey.zip SemanticScuttle-origin/privatekey.tar.gz SemanticScuttle-origin/privatekey.tar.bz2 |
Final updates to rss.php with correct authentication and bookmark resultsorigin/privatekey
Diffstat (limited to 'www')
-rw-r--r-- | www/rss.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/www/rss.php b/www/rss.php index ae32cbd..ee6fb4b 100644 --- a/www/rss.php +++ b/www/rss.php @@ -107,7 +107,19 @@ if ($user && $user != 'all') { } $pagetitle .= ": ". $user; } else { - $userid = null; + if ($privatekey != null) { + if ($userservice->loginPrivateKey($privatekey)) { + $isTempLogin = true; + } else { + $tplVars['error'] = sprintf(T_('Failed to Autenticate User with username %s using private key'), $user); + header('Content-type: text/html; charset=utf-8'); + $templateservice->loadTemplate('error.404.tpl', $tplVars); + //throw a 404 error + exit(); + } + } else { + $userid = null; + } } if ($cat) { |