Keeping track of the action before a login?

Posted by soybie on Stack Overflow See other posts from Stack Overflow or by soybie
Published on 2011-01-03T19:19:48Z Indexed on 2011/01/03 20:53 UTC
Read the original article Hit count: 156

Filed under:

I'm trying to do the following:

  1. User can vote for an item (controller: item, action: vote)

2a. If the user is logged in, then vote action goes through.

2b. If user is not logged in, then user needs to log in/creates an account (handled by user controller), then vote action goes through.

How do I do 2b such that once the user logs in/creates account, the vote action automatically goes through without having the user vote for the item again?

© Stack Overflow or respective owner

Related posts about grails