summaryrefslogtreecommitdiff
path: root/motion.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 /motion.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 'motion.php')
-rw-r--r--motion.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/motion.php b/motion.php
index 71fe4b7..de94bfd 100644
--- a/motion.php
+++ b/motion.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();