diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-17 20:04:17 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-17 20:04:17 -0700 |
commit | 0f47ac282c30c61dbc13e42c4f53b2fc14d65593 (patch) | |
tree | b56358665636f78c6e9a62f2abebfb75049cf447 /mod/lostpass.php | |
parent | f5a8a92df101cbf37fedb9ac3f7702f60a40772e (diff) | |
download | volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.gz volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.bz2 volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.zip |
celebrity/group/community pages about 75% implemented
Diffstat (limited to 'mod/lostpass.php')
-rw-r--r-- | mod/lostpass.php | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |