[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1734] okay, this fixes it
From: |
Matt Lee |
Subject: |
[Librefm-commits] [1734] okay, this fixes it |
Date: |
Thu, 21 May 2009 15:53:20 +0000 |
Revision: 1734
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1734
Author: mattl
Date: 2009-05-21 15:53:19 +0000 (Thu, 21 May 2009)
Log Message:
-----------
okay, this fixes it
Modified Paths:
--------------
branches/stable/nixtape/reset.php
Modified: branches/stable/nixtape/reset.php
===================================================================
--- branches/stable/nixtape/reset.php 2009-05-21 15:43:49 UTC (rev 1733)
+++ branches/stable/nixtape/reset.php 2009-05-21 15:53:19 UTC (rev 1734)
@@ -72,8 +72,8 @@
$err = 0;
try {
- $row = $adodb->GetRow('SELECT * FROM Users WHERE email="'
- . $adodb->qstr($email));
+ $sql = 'SELECT * FROM Users WHERE email=' . $adodb->qstr($email);
+ $row = $adodb->GetRow($sql);
}
catch (exception $e) {
$err = 1;
@@ -85,7 +85,9 @@
$smarty->display('error.tpl');
die();
}
+
$code = md5($row['$username'] . $row['email'] . time());
+
$sql = 'INSERT INTO Recovery_Request (username, email, code, expires)
VALUES('
. $adodb->qstr($row['$username']) . ', '
. $adodb->qstr($row['email']) . ', '
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1734] okay, this fixes it,
Matt Lee <=