Changeset 25341


Ignore:
Timestamp:
04/04/12 13:40:18 (9 years ago)
Author:
ak19
Message:

Recommitted with debug statements commented out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/ModifyUsersDB.java

    r25338 r25341  
    5353        if(password.length() < 3 || password.length() > 8) {
    5454            if(!password.equals("")) {
    55             System.err.println("Password not updated. It should be between 3 and 8 characters (inclusive).");
     55            System.out.println("Password not updated. It should be between 3 and 8 characters (inclusive).");
    5656            }
    5757        } else {
    5858            // Use the same encryption technique used by the Admin Authentication page
    5959            // This ensures that the password generated for a string remains consistent
    60             System.err.println("**** Password entered was: " + password);
     60            //System.err.println("**** Password entered was: " + password);
    6161            password = Authentication.hashPassword(password);
    6262        }
     
    8282    if(findUserResult == null) {
    8383        if(noAdd) {
    84         System.err.println("Failed to update user. Cannot find user " + username + " in " + usersDB + " database.");
     84        System.out.println("Failed to update user. Cannot find user " + username + " in " + usersDB + " database.");
    8585        } else { // add new user
    86         System.err.println("**** Trying to add user: ");
    87         System.err.println("**** " + username + " " + password + " " + groups + " " + accountstatus + " " + comment + " " + email);
     86        //System.err.println("**** Trying to add user: ");
     87        //System.err.println("**** " + username + " " + password + " " + groups + " " + accountstatus + " " + comment + " " + email);
    8888        dw.addUser(username, password, groups, accountstatus, comment, email);
    8989        }
     
    110110        }   
    111111       
    112         System.err.println("**** " + username + " " + password + " " + groups + " " + accountstatus + " " + comment + " " + email);
     112        //System.err.println("**** " + username + " " + password + " " + groups + " " + accountstatus + " " + comment + " " + email);
    113113        dw.modifyUserInfo(username, password, groups, accountstatus, comment, email); // other than username and pwd, remaining fields are allowed to be ""
    114114    }
Note: See TracChangeset for help on using the changeset viewer.