djangosnippets.org: Latest snippets posted by debricehttps://djangosnippets.org/users/debrice/2009-02-19T20:03:10.155466-06:00debriceSWFUpload auth decorator
2009-02-19T20:03:10.155466-06:00debricehttps://djangosnippets.org/snippets/1331/<p>I use this snippet to simplify my auth system with flash uploader SWFUpload. flash_login_required ensures that the user is authenticated and inject the context dictionnary into the specified template. To redirect a user, just set the variable <code>context['redirect']</code> with an url. </p>
<p>Remember to include the cookie js in your template …</p>
Freely redistributable