Good day people!
I have a question about the custom spring security error message I have done something like how to do this and my root-context.xml
& lt ;! - Override comes with the following inserting snippet in the spring - Security message - & gt; & Lt; Bean id = "Message source" class = "org.springframework.context.support.ResourceBundleMessageSource" & gt; & Lt; Property Name = "BaseName" & gt; & Lt; List & gt; & Lt; Price & gt; Mymessages & lt; / Pricing & gt; & Lt; / List & gt; & Lt; / Property & gt; & Lt; / Bean & gt; Creating a property file named
and mymessages.properties
in the WEB-INF \ classes \
folder name.
I do not know anyone here has suffered the same problem, but I am giving it one shot. You can see that I was able to override the message for the message "bad credential".
AbstractUserDetailsAuthenticationProvider.badCredentials = Invalid Username or Password
Now, the key I
ConcurrentSessionControlStrategy.exceededAllowed = { 0} This key uses the maximum session for the maximum allowable session to override the message
but when I change the value of the key , Then it is not reflected.
Is anyone in such a situation? thank you in advanced!
I had the same problem, I saw what message they use and it's different:
/ P>As you said, the message says:
Control over the concurrent session. Forwarded
However, throws (; SessionInformation & gt; session, allowableSessions int, from the SessionRegistry registry list); SessionAuthenticationException {if (exceptionIfMaximumExceeded || (Session code messages using messages .properties
is separate for one of the protected Zero allowableSessionsExceeded == faucet) {New SessionAuthenticationException (messages.getMessage ("ConcurrentSessionControlAuthenticationStrategy.exceededAllowed", New Item [] {Integer.valueOf ( AllowableSessions)}, exceeding this session for the maximum session of "throw" {0});); }
In summary, override using this:
ConcurrentSessionControlAuthenticationStrategy.exceededAllowed
instead of doing this thing Of: >
Comments
Post a Comment