Subversion Repositories WebE

Compare Revisions

Last modification

Ignore whitespace Rev 30 → Rev 29

/trunk/src/ch/ffhs/webE/action/LoginAction.java
35,7 → 35,6
if ("".equals(getUserName()) || "".equals(getPw())
|| getUserName() == null || getPw() == null)
{
addFieldError("userName", "Falscher Username oder Passwort");
return ERROR;
}
 
42,7 → 41,6
String verifiedUser = verifyUser(getUserName(), getPw());
if (verifiedUser.equals("failed"))
{
addFieldError("userName", "Falscher Username oder Passwort");
return ERROR;
}
else
55,14 → 53,9
}
}
 
/**
* Logout ausf├╝hren. Zerst├Ârt die Daten in der Session
* @return String
*/
public String doLogout()
{
//Kill Session content
ActionContext.getContext().getSession().clear();
// TODO: Kill session content for logout
return SUCCESS;
}