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
This commit is contained in:
David Pursehouse
2013-10-18 15:13:10 +09:00
parent 43d3499905
commit c8fb8ed522

View File

@@ -168,7 +168,7 @@ class BecomeAnyAccountLoginServlet extends HttpServlet {
Element userlistElement = HtmlDomUtil.find(doc, "userlist");
ReviewDb db = schema.open();
try {
ResultSet<Account> accounts = db.accounts().firstNById(5);
ResultSet<Account> accounts = db.accounts().firstNById(100);
for (Account a : accounts) {
String displayName;
if (a.getUserName() != null) {