rem: throw new Exception("passwordTwice"); 
add: throw new Error(gettext("Could not verify your password. Please repeat your input.")) 
context: User.register = function(data) {   // check if username is existing and is clean   // can't use isClean() here because we accept   // special characters like umlauts and spaces   var invalidChar = new RegExp("[^a-zA-Z0-9\\.\\-_ ]");   if (!data.name) {      throw new Exception("usernameMissing");   } else if (data.name.length > 30) {      throw new Exception("usernameTooLong");   } else if (invalidChar.exec(data.name)) {      throw new Exception("usernameNoSpecialChars");   } else if (this[data.name] || this[data.name + "_action"]) {      throw new Exception("usernameExisting");   }   // check if email-address is valid   if (!data.email) {      throw new Exception("emailMissing");   }   evalEmail(data.email);   // Create hash from password for JavaScript-disabled browsers   if (!data.hash) {      // Check if passwords match      if (!data.password || !data.passwordConfirm) {         throw new Exception("passwordTwice");      } else if (data.password !== data.passwordConfirm) {         throw new Exception("passwordNoMatch");      }      data.hash = (data.password + session.data.token).md5();   }   if (User.getByName(data.name)) {      throw new Exception("memberExisting");   }   var user = new User(data);   // grant trust and sysadmin-rights if there's no sysadmin 'til now   if (root.manage.sysadmins.size() == 0) {      user.sysadmin = user.trusted = 1;   } else {      user.sysadmin = user.trusted = 0;   }   root.users.add(user);   var welcomeWhere = path.site ? path.site.title : root.getTitle();   return new Message("welcome", [welcomeWhere, user.name], user);};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/e9a7800a87905f590201a6af0beb752a4e65a080/User.js/buggy/code/User/User.js