Skip to content

Loading…

Minor Readme update #8

Merged
merged 1 commit into from

2 participants

@stephanh

Hi Tim,

Thank you for creating this module. I was just playing with it and had issues where log in redirection wouldn't work on successful log in and it would redirect me to the log in page when ever I change to another page.

I figured out that this was caused by me adding the shiro filter, etc. after the lift filter, etc. in the web xml. I updated the Readme to reflect that so that other people don't get caught out by this.

Regards,

Stephan

@timperrett timperrett merged commit 15c7986 into timperrett:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 4, 2011
  1. Updated Readme

    Stephan committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.textile
View
2 README.textile
@@ -12,7 +12,7 @@ First, add the SBT dependency:
resolvers += "apache.repo" at "https://repository.apache.org/content/repositories/snapshots/"
</code></pre>
-Next, you need to add this to the web.xml within your project in order to initialise the Shiro context when your application receives a request:
+Next, you need to add this to the web.xml within your project in order to initialise the Shiro context when your application receives a request. You need to add this above the lift filter and filter-map. Otherwise, login redirection will not work.
<pre><code> <listener>
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
Something went wrong with that request. Please try again.