Page d'erreur pour le login -> renvoi vers la page de login/création de compte complet (loginFull.jsp)

This commit is contained in:
Nicolas Michard
2008-02-04 14:05:45 +00:00
parent e9930c6791
commit af13dfaded
10 changed files with 56 additions and 7 deletions

View File

@@ -32,10 +32,15 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem
<bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
<property name="authenticationManager" ref="authenticationManager"/>
<property name="authenticationFailureUrl" value="/jsp/login.jsp?errorId=1"/>
<property name="authenticationFailureUrl" value="/login.htm?login_error=1" />
<property name="defaultTargetUrl" value="/"/>
<property name="filterProcessesUrl" value="/j_acegi_security_check"/>
<property name="rememberMeServices" ref="rememberMeServices"/>
<property name="exceptionMappings">
<props>
<prop key="org.acegisecurity.BadCredentialsException">/login.htm?login_error=2</prop>
</props>
</property>
</bean>
<bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">

View File

@@ -26,7 +26,7 @@
<!-- For anonymous user display the login form -->
<authz:authorize ifAllGranted="ROLE_ANONYMOUS">
<page:applyDecorator name="empty" page="/WEB-INF/jsp/login.jsp" />
<page:applyDecorator name="empty" page="/login.jsp" />
</authz:authorize>
<!-- For authenticated user display user information-->

View File

@@ -7,4 +7,4 @@
File doesn't exist.
</body>
</html>
</html>

View File

@@ -0,0 +1,18 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<body>
<c:if test="${not empty param.login_error}">
<div class="login_error">
Your login attempt was not successful, try again.<br /><br />
</div>
</c:if>
<br /> FORMULAIRE DE CONNEXION
<br /> NOUVEL UTILISATEUR
</body>
</html>

View File

@@ -14,7 +14,7 @@ Utilisateur avec tous les r
<b>Lancer le Filler.java dans YACOS Test pour avoir l'utilisateur admin puis choisir la conference id=68 (ou la premiere de la liste normalement)...</b><br />
LOGIN=<b>admin</b> PASS=<b>admin</b>
LOGIN=<b>admin</b> PASS=<b>admin</b><br/>
</body>
</html>

View File

@@ -115,4 +115,5 @@
<location>/WEB-INF/jsp/errors/404error.jsp</location>
</error-page>
</web-app>

View File

@@ -74,6 +74,9 @@
<prop key="/valideOrReject.htm">
ValideOrRejectController
</prop>
<prop key="/login.htm">
LogonController
</prop>
</props>
</property>
</bean>
@@ -232,6 +235,9 @@
<property name="articleManager" ref="articleManager" />
</bean>
<bean id="LogonController" class="org.yacos.web.system.controller.LogonController">
</bean>
<!-- List all conference -->
<bean id="ListConferenceController"

View File

@@ -1,10 +1,9 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<body>
<form action="<c:url value='j_acegi_security_check'/>" method="POST" id="formlogin">
<a href="#" id="connexion">Connexion :</a>
<input type='text' name='j_username' value="<fmt:message key='login.field.login' />" onfocus="if (this.value == '<fmt:message key='login.field.login' />') { this.value = ''; }" onblur="if (this.value == '') { this.value = '<fmt:message key='login.field.login' />'; }" />

View File

@@ -21,6 +21,11 @@ body {
position: relative;
}
.errorMessage {
color:red;
font-size: 10px;
}
/* @group Login */
#userlogin{