Commit Graph

9 Commits

Author SHA1 Message Date
Paul Eggleton
6f8201fe93 Fixes for django-registration 2.x
* Newer django-registration doesn't need the workaround URLs
* We need to rename password_reset_email.html to .txt

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-09-20 20:46:56 +12:00
Paul Eggleton
ae550c5a6c Fix for changes to auth views in Django 1.6
Part of this change is temporary for django-registration 1.0; later
versions probably won't require the workaround URLs.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-09-20 20:11:13 +12:00
Paul Eggleton
4d6894ccbb Explicitly specify temporary redirection
Django 1.8 warns that the default for the "permanent" parameter to
RedirectView is changing in 1.9 from True to False, but I believe we
should be specifying False for these redirections - these are not just
redirections from old URLs and may in fact change in the future if the
site structure changes.

Part of the implementation for [YOCTO #9620].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-06-12 11:33:08 +12:00
Paul Eggleton
82c632ca2d Upgrade to Django 1.6+
I'd like to be upgrading to 1.8 but that causes problems with South, and
we're not quite ready to dispense with our existing migrations yet.

Part of the implementation for [YOCTO #9620].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-06-12 11:33:08 +12:00
Paul Eggleton
0c3ed04bcd Fix CSRF validation errors in password reset forms
Thanks to Michael Halstead <michael@yoctoproject.org> for this fix.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 09:31:26 +00:00
Alexandru DAMIAN
b483dcf2af Redirects unknown URLs to the default application
It's bad form to show the user a Page Not Found on
the first site open, so we redirect to the default
application.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2013-03-08 16:30:51 +00:00
Paul Eggleton
b3afd4f2fd Add catchall 404 URL if nothing else matches
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 16:55:28 +00:00
Paul Eggleton
4b3aad2cea Add CAPTCHA to submission form
This should prevent spamming even though this is less likely with this
kind of site.

The CAPTCHA does not show when editing, only submitting, and is also not
shown for authenticated users.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-28 15:48:38 +00:00
Paul Eggleton
2eb5f38b21 Initial commit of layerindex-web
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-13 12:09:57 +00:00