Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove login_required decorator from views.
Browse files Browse the repository at this point in the history
madsilva committed Oct 1, 2018
1 parent dc83415 commit 268fc15
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fitapp/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import simplejson as json
from dateutil import parser
from dateutil.relativedelta import relativedelta
from django.contrib.auth.decorators import login_required
from django.contrib.auth.signals import user_logged_in
from django.core.exceptions import ImproperlyConfigured
from django.dispatch import receiver
@@ -21,7 +20,6 @@
from .tasks import get_time_series_data, subscribe, unsubscribe, get_intraday_data


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


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


@login_required
def logout(request):
"""Forget this user's Fitbit credentials.

0 comments on commit 268fc15

Please sign in to comment.