Revision 228
Added by bojilova over 24 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
273 | 273 |
|
274 | 274 |
private void handleLoginAction(PrintWriter out, Hashtable params, |
275 | 275 |
HttpServletRequest request, HttpServletResponse response) { |
276 |
String un = (String)params.get("username");
|
|
277 |
String pw = (String)params.get("password");
|
|
276 |
String un = ((String[])params.get("username"))[0];
|
|
277 |
String pw = ((String[])params.get("password"))[0];
|
|
278 | 278 |
out.println("Username:" + un); |
279 | 279 |
out.println("Password:" + pw); |
280 | 280 |
// MetaCatSession sess = new MetaCatSession(request, un, pw); |
281 |
//try { |
|
281 |
//try {
|
|
282 | 282 |
//if (sess.userAuth(pw)) { |
283 | 283 |
// try { |
284 | 284 |
// response.sendRedirect( |
Also available in: Unified diff
testing login