[tor-commits] [pups/production] /stats now requires login

colin at torproject.org colin at torproject.org
Fri May 23 10:39:13 UTC 2014


commit d1ca8e7ba42ce7b2360050e56711bd73eb1f1ec3
Author: Sherief Alaa <sheriefalaa.w at gmail.com>
Date:   Sun May 18 01:36:48 2014 +0300

     /stats now requires login
---
 stats/views.py |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/stats/views.py b/stats/views.py
index 6b7c360..433d37a 100644
--- a/stats/views.py
+++ b/stats/views.py
@@ -22,8 +22,10 @@
 
 from django.http import HttpResponse
 from django.shortcuts import render, redirect
+from django.contrib.auth.decorators import login_required
 
 
+ at login_required
 def stats(request):
 
     return render(request, 'stats.html')





More information about the tor-commits mailing list