Form Login

This commit is contained in:
Nicolas Michard
2008-01-28 23:01:36 +00:00
parent 07d3940fbd
commit c544189c3d
5 changed files with 85 additions and 40 deletions

View File

@@ -23,7 +23,17 @@
<!-- User Information -->
<div id="userlogin">
<page:applyDecorator name="empty" page="/WEB-INF/jsp/login.jsp" />
<!-- For anonymous user display the login form -->
<authz:authorize ifAllGranted="ROLE_ANONYMOUS">
<page:applyDecorator name="empty" page="/WEB-INF/jsp/login.jsp" />
</authz:authorize>
<!-- For authenticated user display user information-->
<authz:authorize ifNotGranted="ROLE_ANONYMOUS">
<page:applyDecorator name="empty" page="/WEB-INF/jsp/secure/userinformation.jsp" />
</authz:authorize>
</div>
<!-- headermenu -->