rem:  var user = User.getByName(req.data.name); if (!user) { throw new Exception("loginTypo"); } res.message = user.login(req.data); if (session.data.referrer) { var url = session.data.referrer; session.data.referrer = null; } else { var url = this._parent.href(); } 
add: try { var user = User.login(req.data); var url = session.data.referrer || this._parent.href(); delete session.data.referrer; res.message = gettext('Welcome to "{0}", {1}. Have fun!', res.handlers.context.getTitle(), user.name); 
context: MemberMgr.prototype.login_action = function() {   res.message = new Message("introLogin");   if (req.data.login) {      //try {         var user = User.getByName(req.data.name);         if (!user) {            throw new Exception("loginTypo");         }         res.message = user.login(req.data);         if (session.data.referrer) {            var url = session.data.referrer;            session.data.referrer = null;         } else {            var url = this._parent.href();         }         res.redirect(url);      //} catch (err) {      //   res.message = err.toString();      //}   }   if (!session.data.referrer && req.data.http_referer) {      session.data.referrer = req.data.http_referer;   }   session.data.token = User.getSalt();   res.data.action = this.href(req.action);   res.data.title = getMessage("User.loginTitle");   res.data.body = this.renderSkinAsString("login");   this._parent.renderSkin("page");   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/e9a7800a87905f590201a6af0beb752a4e65a080/MemberMgr.js/buggy/code/MemberMgr/MemberMgr.js