зеркало из https://github.com/mozilla/pjs.git
Fix for bug 150925: make email address changes work.
2xr=bbaetz
This commit is contained in:
Родитель
0465e3ac35
Коммит
773aca105c
|
@ -257,10 +257,9 @@ sub HasEmailChangeToken {
|
||||||
|
|
||||||
my ($userid) = @_;
|
my ($userid) = @_;
|
||||||
|
|
||||||
&::SendSQL("SELECT token FROM tokens
|
&::SendSQL("SELECT token FROM tokens WHERE userid = $userid " .
|
||||||
WHERE userid = $userid
|
"AND (tokentype = 'emailnew' OR tokentype = 'emailold') " .
|
||||||
AND tokentype = 'emailnew'
|
"LIMIT 1");
|
||||||
OR tokentype = 'emailold' LIMIT 1");
|
|
||||||
my ($token) = &::FetchSQLData();
|
my ($token) = &::FetchSQLData();
|
||||||
|
|
||||||
return $token;
|
return $token;
|
||||||
|
|
|
@ -257,10 +257,9 @@ sub HasEmailChangeToken {
|
||||||
|
|
||||||
my ($userid) = @_;
|
my ($userid) = @_;
|
||||||
|
|
||||||
&::SendSQL("SELECT token FROM tokens
|
&::SendSQL("SELECT token FROM tokens WHERE userid = $userid " .
|
||||||
WHERE userid = $userid
|
"AND (tokentype = 'emailnew' OR tokentype = 'emailold') " .
|
||||||
AND tokentype = 'emailnew'
|
"LIMIT 1");
|
||||||
OR tokentype = 'emailold' LIMIT 1");
|
|
||||||
my ($token) = &::FetchSQLData();
|
my ($token) = &::FetchSQLData();
|
||||||
|
|
||||||
return $token;
|
return $token;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче