Skip to content

Commit

Permalink
ログイン状況による遷移
Browse files Browse the repository at this point in the history
  • Loading branch information
secondarykey committed Jan 12, 2013
1 parent d997bdf commit 8ec0c6e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
package jp.dogrun.ileaflet.controller.dashboard;

import jp.dogrun.ileaflet.model.Actor;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class IndexController extends Controller {

@Override
public Navigation run() throws Exception {

Actor actor = (Actor)request.getSession().getAttribute(Actor.class.getName());
//ログイン状態を取得
if ( actor == null ) {
return forward("../login/");
}
return forward("index.jsp");
}
}

0 comments on commit 8ec0c6e

Please sign in to comment.