changeset 129:d011a389e49b

Moar.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 22 Oct 2013 17:59:03 +0300
parents dcf701c7f249
children b8732bdd9b17
files usrlogin.php vote.inc.php
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usrlogin.php	Tue Oct 22 17:58:23 2013 +0300
+++ b/usrlogin.php	Tue Oct 22 17:59:03 2013 +0300
@@ -20,7 +20,7 @@
 $sql = stPrepareSQL("SELECT id FROM votekeys WHERE key=%s", $password);
 if (($votekey_id = stFetchSQLColumn($sql)) !== false)
 {
-  if (!stSessionStart(SESS_USER, $votekey_id, "userTimeout"))
+  if (!stSessionStart(SESS_USER, $password, "userTimeout"))
   {
     error_log("User session AUTH LOGIN failed (session setup)");
     $gotoPage = "loginerror";
--- a/vote.inc.php	Tue Oct 22 17:58:23 2013 +0300
+++ b/vote.inc.php	Tue Oct 22 17:59:03 2013 +0300
@@ -62,7 +62,6 @@
   stGetFormStart("vote", "usrvote.php").
   " ".stGetFormHiddenInput("mode", "done")."\n".
   " ".stGetFormHiddenInput("goto", "vote")."\n".
-  " ".stGetFormHiddenInput("key", stGetSessionItem("key"))."\n".
   stGetVoteButton();
 
   foreach ($compos as $id => $compo)