Revision 5010
Added by daigle over 15 years ago
lib/admin/admin.css | ||
---|---|---|
79 | 79 |
height: 1px; |
80 | 80 |
} |
81 | 81 |
|
82 |
.username-input { |
|
83 |
width: 500px; |
|
84 |
} |
|
85 |
|
|
82 | 86 |
.login-input { |
83 | 87 |
width: 300px; |
84 | 88 |
} |
lib/admin/admin-login.jsp | ||
---|---|---|
28 | 28 |
%> |
29 | 29 |
|
30 | 30 |
<% |
31 |
Vector<String> organizationList = OrganizationUtil.getOrganizations();
|
|
31 |
Vector<String> adminList = (Vector<String>)request.getAttribute("adminList");;
|
|
32 | 32 |
%> |
33 | 33 |
|
34 | 34 |
<html> |
... | ... | |
58 | 58 |
<table class="admin-login"> |
59 | 59 |
<tr> |
60 | 60 |
<td>username:</td> |
61 |
<td><input class="login-input" name="username" type="text" value=""></td> |
|
61 |
<td> |
|
62 |
<select class="username-input" name="username"> |
|
63 |
<% |
|
64 |
for(String adminName : adminList) { |
|
65 |
%> |
|
66 |
<option><%= adminName %></option> |
|
67 |
<% |
|
68 |
} |
|
69 |
%> |
|
70 |
|
|
71 |
</select> |
|
72 |
</td> |
|
62 | 73 |
</tr> |
63 | 74 |
<tr> |
64 | 75 |
<td></td> |
src/edu/ucsb/nceas/metacat/admin/LoginAdmin.java | ||
---|---|---|
84 | 84 |
// the web form for configuring metacat |
85 | 85 |
|
86 | 86 |
try { |
87 |
request.setAttribute("adminList", AuthUtil.getAdministrators()); |
|
87 | 88 |
// Forward the request to the JSP page |
88 | 89 |
RequestUtil.forwardRequest(request, response, |
89 | 90 |
"/admin/admin-login.jsp"); |
91 |
} catch (MetacatUtilException mue) { |
|
92 |
throw new AdminException("Utility problem while processing login page: " |
|
93 |
+ mue.getMessage()); |
|
90 | 94 |
} catch (IOException ioe) { |
91 | 95 |
throw new AdminException("IO problem while initializing " |
92 | 96 |
+ "user login page:" + ioe.getMessage()); |
Also available in: Unified diff
Populate admin login user dropdown with configured admins