grails / grails-spring-security-core

Grails Spring Security Core Plugin
Apache License 2.0
261 stars 223 forks source link

Fix locale for authfail to be consistant with g:message FormatTagLib resolveLocale #1025

Closed codeconsole closed 1 month ago

codeconsole commented 1 month ago

request.locale gets the user's locale, but not the locale set by the user.

g:message gets the locale set by the user and what is used by all the other locations of this plugin.

this fix makes the behavior consistent with the rest of the plugin.

https://github.com/grails/grails-gsp/blob/7ad985676e6217ad331f75aafad8258c1cb9d8cb/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/taglib/FormatTagLib.groovy#L336-L349