Skip to content

Commit 268fc15

Browse files
committed
Remove login_required decorator from views.
1 parent dc83415 commit 268fc15

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fitapp/views.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import simplejson as json
22
from dateutil import parser
33
from dateutil.relativedelta import relativedelta
4-
from django.contrib.auth.decorators import login_required
54
from django.contrib.auth.signals import user_logged_in
65
from django.core.exceptions import ImproperlyConfigured
76
from django.dispatch import receiver
@@ -21,7 +20,6 @@
2120
from .tasks import get_time_series_data, subscribe, unsubscribe, get_intraday_data
2221

2322

24-
@login_required
2523
def login(request):
2624
"""
2725
Begins the OAuth authentication process by obtaining a Request Token from
@@ -162,7 +160,6 @@ def create_fitbit_session(sender, request, user, **kwargs):
162160
pass
163161

164162

165-
@login_required
166163
def error(request):
167164
"""
168165
The user is redirected to this view if we encounter an error acquiring
@@ -188,7 +185,6 @@ def error(request):
188185
return render(request, utils.get_setting('FITAPP_ERROR_TEMPLATE'), {})
189186

190187

191-
@login_required
192188
def logout(request):
193189
"""Forget this user's Fitbit credentials.
194190

0 commit comments

Comments
 (0)