login work

This commit is contained in:
eugenp 2013-05-01 16:59:54 +03:00
parent a21d9e4538
commit bcc0338f7a
2 changed files with 7 additions and 3 deletions

View File

@ -9,8 +9,12 @@
<intercept-url pattern="/login*" access="isAnonymous()" />
<intercept-url pattern="/**" access="isAuthenticated()" />
<form-login login-page='/login.html' default-target-url="/homepage.html"
authentication-failure-url="/login.html?error=true" />
<form-login
login-page='/login.html'
login-processing-url="/perform_login"
default-target-url="/homepage.html"
authentication-failure-url="/login.html?error=true"
always-use-default-target="true"/>
</http>

View File

@ -4,7 +4,7 @@
<body>
<h1>Login</h1>
<form name='f' action="j_spring_security_check" method='POST'>
<form name='f' action="perform_login" method='POST'>
<table>
<tr>