Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small patch for spring-security-ui - issue with user accounts not being unlocked #4

Merged
merged 1 commit into from
Jul 4, 2011

Conversation

PeterBell
Copy link
Contributor

Using default spring security ui plugin on 1.3.6 if you register and then click on confirmation email, it logs you in, but if you then log out and try to log in again it gives "account locked" message. Flushing the user.save() after the user.accountlocked=false seems to solve the problem.

Still getting my feet wet with Grails (been busy with lots of non-Grails projects :( ) so if this is just something I'm missing, please ignore and my apologies in advance.

Best Wishes,
Peter

@sirianni
Copy link

sirianni commented Mar 6, 2011

Running into the same problem. Nice patch.

Any idea why the flush() is necessary? I thought Grails configures Hibernate to auto-flush at the end of the transaction...

burtbeckwith added a commit that referenced this pull request Jul 4, 2011
Small patch for spring-security-ui - issue with user accounts not being unlocked
@burtbeckwith burtbeckwith merged commit 02500d2 into grails:master Jul 4, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants