Le 28/04/2014 03:46, rejimk a écrit :
Could you please post the excerpt of login jsp and action class?
Hi rejimk,
In my JSP, i have nothing special:
<s:form action="login" namespace="/authentication" method="post">
<s:textfield name="email" label="E-mail"/>
<s:password name="password" label="Password"/>
<s:submit value="OK" />
</s:form>
In LoginAction:
@Override
public String input() {
return INPUT;
}
@Override
public String execute() {
return INPUT;
}
The trick is execute method returns INPUT (and not SUCCESS) so i send
the user on url "/authentication/login" and NOT
"/authentication/login!input".
In shiro.ini, I have:
# login.action and NOT login!input.action as expected
authc.loginUrl = /authentication/login.action
# use email field as login
authc.usernameParam = email
Does it helps ?
--
Brendan Le Ny, Code Lutin
[email protected]
(+33) 02 40 50 29 28