}
this.responseString = authName;
} else {
try {
IUserManager userManager = serverManager.getUserManager();
user = userManager.login(name, password);
if (user != null) {
String redirect = (String) req.getSession().getAttribute(IDavinciServerConstants.REDIRECT_TO);
req.getSession().removeAttribute(IDavinciServerConstants.REDIRECT_TO); // burn after reading
this.responseString = (redirect != null) ? redirect : "OK";
HttpSession session = req.getSession(true);