Skip to content

Commit

Permalink
removed csrf exempt
Browse files Browse the repository at this point in the history
SatyaanM committed Apr 22, 2022
1 parent ee0620b commit 11d0360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions App/views/users.py
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
session
)
from flask_login import login_required
from flask_wtf import csrf
# from flask_wtf import csrf
from App.controllers import (
SignUp,
LogIn,
@@ -86,7 +86,7 @@ def logout_action():
# user must be logged in to view account spottings
@user_views.route("/spottings", methods=["GET", "POST"])
@login_required
@csrf.exempt
# @csrf.exempt
def spottings_page():
user_coords = get_user_location(session['user_id'])
spottings = get_spottings_by_user(session['user_id'])

0 comments on commit 11d0360

Please sign in to comment.