-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d997bdf
commit 8ec0c6e
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/jp/dogrun/ileaflet/controller/dashboard/IndexController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} |