- public Map<String, String> getCookies() {
- // TODO
- // Cookies will actually be retained by the cache manager once logged in
- // But we need to connect here and notify the cache manager
+ public void login() throws IOException {
+ Map<String, String> post = new HashMap<String, String>();
+ post.put("LoginForm[sfLoginUsername]",
+ Instance.getConfig().getString(Config.LOGIN_YIFFSTAR_USER));
+ post.put("LoginForm[sfLoginPassword]",
+ Instance.getConfig().getString(Config.LOGIN_YIFFSTAR_PASS));
+ post.put("YII_CSRF_TOKEN", "");