Project

General

Profile

« Previous | Next » 

Revision 229

Added by bojilova over 24 years ago

testing login

View differences:

src/edu/ucsb/nceas/metacat/MetaCatSession.java
67 67

  
68 68
    /** Get new HttpSession and store username & password in it */
69 69
    private HttpSession getSession(HttpServletRequest request, 
70
                            String username, String password)  {
70
                            String username, String password)  
71
                            throws IllegalStateException {
71 72
                                
72 73
      // get the current session object, create one if necessary
73 74
      HttpSession sess = request.getSession(true);
src/edu/ucsb/nceas/metacat/MetaCatServlet.java
277 277
    String pw = ((String[])params.get("password"))[0];
278 278
 out.println("Username:" + un);
279 279
 out.println("Password:" + pw);
280
//    MetaCatSession sess = new MetaCatSession(request, un, pw);
280
    MetaCatSession sess = new MetaCatSession(request, un, pw);
281 281
    //try {  
282 282
        //if (sess.userAuth(pw)) {
283 283
//            try {

Also available in: Unified diff