Changeset 25341
- Timestamp:
- 2012-04-04T13:40:18+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/ModifyUsersDB.java
r25338 r25341 53 53 if(password.length() < 3 || password.length() > 8) { 54 54 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)."); 56 56 } 57 57 } else { 58 58 // Use the same encryption technique used by the Admin Authentication page 59 59 // 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); 61 61 password = Authentication.hashPassword(password); 62 62 } … … 82 82 if(findUserResult == null) { 83 83 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."); 85 85 } 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); 88 88 dw.addUser(username, password, groups, accountstatus, comment, email); 89 89 } … … 110 110 } 111 111 112 System.err.println("**** " + username + " " + password + " " + groups + " " + accountstatus + " " + comment + " " + email);112 //System.err.println("**** " + username + " " + password + " " + groups + " " + accountstatus + " " + comment + " " + email); 113 113 dw.modifyUserInfo(username, password, groups, accountstatus, comment, email); // other than username and pwd, remaining fields are allowed to be "" 114 114 }
Note:
See TracChangeset
for help on using the changeset viewer.