aboutsummaryrefslogtreecommitdiffstats
path: root/token.cgi
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-07-05 11:06:37 -0400
committerDavid Lawrence <dlawrence@mozilla.com>2011-07-05 11:06:37 -0400
commitea6b82f1303f86e5b62ea23985cc47cea5454f9b (patch)
treea548590aa11314ed2715f10f9394947fb7aea3ab /token.cgi
parente658f6a3e6af7bbcc68d235a58f2294a47074ab6 (diff)
downloadbugs-ea6b82f1303f86e5b62ea23985cc47cea5454f9b.tar
bugs-ea6b82f1303f86e5b62ea23985cc47cea5454f9b.tar.gz
bugs-ea6b82f1303f86e5b62ea23985cc47cea5454f9b.tar.bz2
bugs-ea6b82f1303f86e5b62ea23985cc47cea5454f9b.tar.xz
bugs-ea6b82f1303f86e5b62ea23985cc47cea5454f9b.zip
Bug 658929 - User autocomplete is very slow when there are lots of users in the profiles table
r/a=mkanat
Diffstat (limited to 'token.cgi')
-rwxr-xr-xtoken.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/token.cgi b/token.cgi
index 560930385..3522834aa 100755
--- a/token.cgi
+++ b/token.cgi
@@ -114,7 +114,7 @@ if ( $action eq 'reqpw' ) {
$user_account = Bugzilla::User->check($login_name);
# Make sure the user account is active.
- if ($user_account->is_disabled) {
+ if (!$user_account->is_enabled) {
ThrowUserError('account_disabled',
{disabled_reason => get_text('account_disabled', {account => $login_name})});
}