From 0f47ac282c30c61dbc13e42c4f53b2fc14d65593 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 17 Oct 2010 20:04:17 -0700 Subject: celebrity/group/community pages about 75% implemented --- mod/lostpass.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/lostpass.php') diff --git a/mod/lostpass.php b/mod/lostpass.php index 20d35133a..0b5dc1376 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -7,7 +7,8 @@ function lostpass_post(&$a) { if(! $email) goaway($a->get_baseurl()); - $r = q("SELECT * FROM `user` WHERE `email` = '%s' LIMIT 1", + $r = q("SELECT * FROM `user` WHERE ( `email` = '%s' OR `nickname` = '%s' ) LIMIT 1", + dbesc($email), dbesc($email) ); if(! count($r)) -- cgit v1.2.3