Changeset 166 for trunk/grails-app/controllers
- Timestamp:
- Oct 26, 2009, 3:11:18 PM (15 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 2 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." -
trunk/grails-app/controllers/PersonGroupController.groovy
r122 r166 27 27 if(personGroupInstance) { 28 28 try { 29 personGroupInstance.delete( )29 personGroupInstance.delete(flush:true) 30 30 flash.message = "PersonGroup ${params.id} deleted" 31 31 redirect(action:list) … … 77 77 else { 78 78 flash.message = "PersonGroup not found with id ${params.id}" 79 redirect(action: edit,id:params.id)79 redirect(action:list) 80 80 } 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.