SigninContext sc = createSigninContext(ctx);
Credential credential = new Credential(account, password);
Session session = m_signinService.signin(sc, credential);
if (session == null) {
ctx.addError(new ErrorObject("biz.login"));
} else {
redirect(ctx, payload);
return;
}
} else {
ctx.addError(new ErrorObject("biz.login.input").addArgument("account", account).addArgument("password",
password));
}
} else if (action == Action.LOGOUT) {
SigninContext sc = createSigninContext(ctx);