I'm trying to add an EULA that users have to agree to on first login.
I'm doing this right now by adding a field to the auth.user called the
eula_accepted flag. If that flag isn't set, it will load a EULA form,
otherwise, it loads the default webpage.
When the user accepts the agreement, the form gets submitted which
sets the flag. I can verify using the appadmin that the field gets
set. But what seems to happen after accepting the form is that the
flag is not reread even when I refresh the page. Is there any command
I can run to reread the flag? The only thing I've gotten to work so
far is to login again. Any ideas?
Here is the (messy) if statement in the html view.
{{if auth.user and (auth.user.eula_accepted==False or
auth.user.eula_accepted=="False"):}}
Thanks!