summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Auth/Login/WWW/Env.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Auth/Login/WWW/Env.pm')
-rw-r--r--Bugzilla/Auth/Login/WWW/Env.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/Bugzilla/Auth/Login/WWW/Env.pm b/Bugzilla/Auth/Login/WWW/Env.pm
index abd176315..54e202bbf 100644
--- a/Bugzilla/Auth/Login/WWW/Env.pm
+++ b/Bugzilla/Auth/Login/WWW/Env.pm
@@ -116,9 +116,7 @@ sub login {
"realname, disabledtext " .
") VALUES ( ?, ?, ?, '' )");
$sth->execute($env_email, '*', $env_realname);
- $sth = $dbh->prepare("SELECT last_insert_id()");
- $sth->execute();
- $matched_userid = $sth->fetch->[0];
+ $matched_userid = $dbh->bz_last_key('profiles', 'userid');
}
}
}