summaryrefslogtreecommitdiff
path: root/vote.php
diff options
context:
space:
mode:
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-05-29 03:43:21 +0000
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-05-29 03:43:21 +0000
commite122d4337bb02ac572b3abe82d590aeeda5691f5 (patch)
tree898db159e1582a3ae2859c7f19985a9c7434b838 /vote.php
parent8094fd2df48244899e0e76fc4cce4c586aa1ce67 (diff)
downloadcacert-boardvoting-e122d4337bb02ac572b3abe82d590aeeda5691f5.tar.gz
cacert-boardvoting-e122d4337bb02ac572b3abe82d590aeeda5691f5.tar.xz
cacert-boardvoting-e122d4337bb02ac572b3abe82d590aeeda5691f5.zip
centralise authentication + more certificate checking
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@44 d4452222-2f33-11de-9270-010000000000
Diffstat (limited to 'vote.php')
-rw-r--r--vote.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/vote.php b/vote.php
index 7908413..126bf4b 100644
--- a/vote.php
+++ b/vote.php
@@ -4,12 +4,9 @@
header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
exit();
}
- $user = $_SERVER['REMOTE_USER'];
require_once("database.php");
$db = new DB();
- $stmt = $db->getStatement("get voter");
- $stmt->execute(array($user));
- if (!($user = $stmt->fetch())) {
+ if (!($user = $db->auth())) {
header("HTTP/1.0 302 Redirect");
header("Location: denied.php");
exit();