Famcy/_util_/_fmanager.py
def check_csrf_token():
			"""Checks that token is correct, aborting if not"""
			if request.method in ("GET",): # not exhaustive list
				return
			token = request.form.get("csrf_token")
			print(request.form)
			if token is None:
				app.logger.warning("Expected CSRF Token: not present")
				abort(400)
			if not safe_str_cmp(token, csrf_token()):
				app.logger.warning("CSRF Token incorrect")
				abort(400)
Checks that token is correct, aborting if not
Checks that token is correct, aborting if not
Checks that token is correct aborting if not
def check_csrf_token():
			if request.method in ("GET",): 
				return
			token = request.form.get("csrf_token")
			print(request.form)
			if token is None:
				app.logger.warning("Expected CSRF Token: not present")
				abort(400)
			if not safe_str_cmp(token, csrf_token()):
				app.logger.warning("CSRF Token incorrect")
				abort(400)
def check_csrf_token ( ) : if request . method in ( "GET" , ) : return token = request . form . get ( "csrf_token" ) print ( request . form ) if token is None : app . logger . warning ( "Expected CSRF Token: not present" ) abort ( 400 ) if not safe_str_cmp ( token , csrf_token ( ) ) : app . logger . warning ( "CSRF Token incorrect" ) abort ( 400 )
Checks that token is correct, aborting if not
Checks that token is correct aborting if not
"""Checks that token is correct, aborting if not""" # not exhaustive list