Changeset - 942e4eb9227f
[Not reviewed]
dev
0 1 0
Dennis Fink - 9 years ago 2015-10-22 23:03:20
dennis.fink@c3l.lu
Fix api update from csrf protection

For now we simply exempt the protection
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
ennstatus/api/views.py
Show inline comments
 
@@ -12,6 +12,7 @@ import strict_rfc3339
 
import pygeoip
 
import requests
 

	
 
from ennstatus import csrf
 
from ennstatus.status.functions import (single_server, all_servers,
 
                                        all_servers_by_type)
 
from .model import Server
 
@@ -22,6 +23,7 @@ gi4 = pygeoip.GeoIP('/usr/share/GeoIP/Ge
 
gi6 = pygeoip.GeoIP('/usr/share/GeoIP/GeoIPv6.dat', pygeoip.MEMORY_CACHE)
 

	
 

	
 
@csrf.exempt
 
@api_page.route('/update', methods=('POST',))
 
@httpauth.login_required
 
def update():
0 comments (0 inline, 0 general)