Skip to content

Commit

Permalink
Merge pull request #1243 from MetadataConsulting/MET-2391-registratio…
Browse files Browse the repository at this point in the history
…n-error

call delete method with argument rather than nothing
  • Loading branch information
passionfruit18 authored May 1, 2018
2 parents aa58a99 + 3e7a270 commit 53016ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ class RegisterController extends grails.plugin.springsecurity.ui.RegisterControl
for (String roleName in roles) {
userRoleGormService.saveUserRoleByUsernameAndAuthority(user.username, roleName)
}
registrationCodeGormService.delete()
registrationCode.delete()
registrationCodeGormService.delete(registrationCode)

}

if (user.accountLocked) {
Expand Down

0 comments on commit 53016ba

Please sign in to comment.