From c8fb8ed522604db092806528de6ba44db49a3335 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 18 Oct 2013 15:13:10 +0900 Subject: [PATCH] Increase accounts listed on Become Any Account login screen to 100 The number of accounts listed on the Become Any Account login page is currently hard-coded to 5. This can be inconvienent for developers on systems that have a larger number of test accounts. Of course the developer can manually enter the account name, but it would be nicer if the screen could show more and allow the developer to just click. Increase the number of accounts shown to 100. This should be enough for most test systems. Change-Id: I3a17c17e18b2226ab4986306fc3cbf071cadd322 --- .../gerrit/httpd/auth/become/BecomeAnyAccountLoginServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/auth/become/BecomeAnyAccountLoginServlet.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/auth/become/BecomeAnyAccountLoginServlet.java index 28e361cd4d..2dde16e9b3 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/auth/become/BecomeAnyAccountLoginServlet.java +++ b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/auth/become/BecomeAnyAccountLoginServlet.java @@ -168,7 +168,7 @@ class BecomeAnyAccountLoginServlet extends HttpServlet { Element userlistElement = HtmlDomUtil.find(doc, "userlist"); ReviewDb db = schema.open(); try { - ResultSet accounts = db.accounts().firstNById(5); + ResultSet accounts = db.accounts().firstNById(100); for (Account a : accounts) { String displayName; if (a.getUserName() != null) {