Fix the broken ConsoleProxyServlet after the merge of API refactoring changes

This commit is contained in:
Kelven Yang 2010-10-15 11:17:27 -07:00
parent 2fd8c769dc
commit 8555eb1913
1 changed files with 3 additions and 2 deletions

View File

@ -88,9 +88,10 @@ public class ConsoleProxyServlet extends HttpServlet {
return;
}
} else {
userId = (String)session.getAttribute("userid");
account = (String)session.getAttribute("account");
// adjust to latest API refactoring changes
userId = ((Long)session.getAttribute("userid")).toString();
accountObj = (Account)session.getAttribute("accountobj");
account = "" + accountObj.getId();
}
// Do a sanity check here to make sure the user hasn't already been deleted