[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1732] fix missing username field
From: |
Matt Lee |
Subject: |
[Librefm-commits] [1732] fix missing username field |
Date: |
Thu, 21 May 2009 15:42:26 +0000 |
Revision: 1732
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1732
Author: mattl
Date: 2009-05-21 15:42:26 +0000 (Thu, 21 May 2009)
Log Message:
-----------
fix missing username field
Modified Paths:
--------------
branches/stable/nixtape/reset.php
Modified: branches/stable/nixtape/reset.php
===================================================================
--- branches/stable/nixtape/reset.php 2009-05-21 15:29:35 UTC (rev 1731)
+++ branches/stable/nixtape/reset.php 2009-05-21 15:42:26 UTC (rev 1732)
@@ -85,7 +85,7 @@
$smarty->display('error.tpl');
die();
}
- $code = md5($username . $row['email'] . time());
+ $code = md5($row['$username'] . $row['email'] . time());
$sql = 'INSERT INTO Recovery_Request (username, email, code, expires)
VALUES('
. $adodb->qstr($username) . ', '
. $adodb->qstr($row['email']) . ', '
@@ -103,8 +103,7 @@
}
$url = $base_url . '/reset.php?code=' . $code;
- $content = "Hi!\n\nSomeone from the IP-address " .
$_SERVER['REMOTE_ADDR'] . " entered your username, " . $row['username']
- . " into the password reset form at libre.fm. To change
your password, please visit\n\n"
+ $content = "Hi!\n\nSomeone from the IP-address " .
$_SERVER['REMOTE_ADDR'] . " entered your username, " . $row['username'] . "
into the password reset form at libre.fm. To change your password, please
visit\n\n"
. $url . "\n\n- The Libre.fm Team";
sendEmail($content, $row['email']);
$smarty->assign('sent', true);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1732] fix missing username field,
Matt Lee <=