Project

General

Profile

« Previous | Next » 

Revision 2171

Store session attributes as username and password for consistency with Metacat

View differences:

HarvesterRegistration.java
377 377

  
378 378
    // The user name and password are stored as session attributes by the
379 379
    // HarvesterRegistrationLogin servlet.
380
    ldapDN = (String) httpSession.getAttribute("ldapDN");
381
    ldapPwd = (String) httpSession.getAttribute("ldapPwd");
380
    ldapDN = (String) httpSession.getAttribute("username");
381
    ldapPwd = (String) httpSession.getAttribute("password");
382 382

  
383 383
    siteScheduleID = getSiteScheduleID(conn, ldapDN);
384 384

  
......
522 522

  
523 523
    // The user name and password are stored as session attributes by the
524 524
    // HarvesterRegistrationLogin servlet
525
    ldapDN = (String) httpSession.getAttribute("ldapDN");
526
    ldapPwd = (String) httpSession.getAttribute("ldapPwd");
525
    ldapDN = (String) httpSession.getAttribute("username");
526
    ldapPwd = (String) httpSession.getAttribute("password");
527 527

  
528 528
    contactEmail = parameterParser.getStringParameter("contactEmail", "None");
529 529
    documentListURL = parameterParser.getStringParameter("documentListURL", "");
......
703 703
	
704 704
			while (rs.next()) {
705 705
        ldapDNValue = rs.getString("LDAPDN");
706

  
706
        
707 707
        if (ldapDNValue.equalsIgnoreCase(ldapDN)) {
708 708
				  siteScheduleID = rs.getInt("SITE_SCHEDULE_ID");
709 709
        }

Also available in: Unified diff