mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Fix warning on CSRF view
When the CSRF view is rendered, no RequestContext is used. This means the token
used for the logout link on the regular base.html won't work.
> UserWarning: A {% csrf_token %} was used in a template, but the context did not
> provide the value. This is usually caused by not using RequestContext.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends "bare_base.html" %}
|
||||
{% comment %}
|
||||
Note on security: the basic principle is "the more you expose, the more an attacker knows."
|
||||
In this case, I think it should be fine, because all we expose here is stuff about mismatched hosts, and:
|
||||
|
||||
Reference in New Issue
Block a user