I'm creating a daily quiz game but I only want each user to be able to play once-a-day.
After the user has completed the quiz, they won't be able to answer more questions until the following day.
I've tried to do this using a global boolean and setting it to false at the end of the quiz and then setting it to true once the time is midnight (using date plugin) but I don't think I've done this right as it's not working.
What is the best way of doing this?