Changeset 166 for trunk/grails-app/controllers/LoginController.groovy
- Timestamp:
- Oct 26, 2009, 3:11:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/LoginController.groovy
r73 r166 144 144 def username = session[AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY] 145 145 def msg = '' 146 def person = Person.findByLoginName(username) 146 147 def exception = session[AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY] 147 148 if (exception) { … … 149 150 msg = "[$username] is disabled." 150 151 } 152 else if (person.authorities.isEmpty()) { 153 msg = "[$username] has no GrantedAuthority." 154 } 151 155 else { 152 156 msg = "[$username] wrong username/password."
Note: See TracChangeset
for help on using the changeset viewer.