Fix login redirect not working occasionally

This forces the loading of the index page during login as was done prior
in acegi security. It is a necessary crutch for now because libresonic
doesn't retain a good targetUrl at all times.

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent c50060884d
commit d6999baa2d
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 5
      libresonic-main/src/main/webapp/WEB-INF/applicationContext-security.xml

@ -56,7 +56,10 @@
<!-- ROLE_USER -->
<security:intercept-url pattern="/**" access="ROLE_USER" />
<security:form-login login-page="/login.view" default-target-url="/home.view" authentication-failure-url="/login.view?error=1"/>
<security:form-login login-page="/login.view"
default-target-url="/index.view"
authentication-failure-url="/login.view?error=1"
always-use-default-target="true"/>
</security:http>
<security:authentication-manager>

Loading…
Cancel
Save