I agree with you. That was a quick and dirty solution. If you really want
your user case and also want a good UX experience for the unlogged in user,
you can consider using some JQuery, maybe .focus() on the first field of
the form to trigger some the login function. This would save the un-logged
in user from useless keystrokes or use $().onClick() function on the submit
function.
On Thursday, May 17, 2012 11:04:12 PM UTC+1, Anthony wrote:
>
> if form.accepts(request.vars, session, onvalidation=status_checker):
>> redirect(URL("index"))
>>
>
> This would not be a good user experience. A user who isn't logged in would
> fill out and submit the form, and upon submission they would end up being
> redirected to the login page, but their form submission would be lost. Even
> worse, they would not know it was lost. It's probably best to get them to
> log in before they waste time filling out a form (particularly if they're
> not even registered yet).
>
> Anthony
>