Created
May 1, 2015 17:45
-
-
Save bh-chaker/62e1eb815ae977765411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Delete a category | |
@app.route('/catalog/<category_name>/delete/<csrf_token>', methods = ['GET','POST']) | |
def deleteCategory(category_name, csrf_token): | |
# First check the csrf_token: | |
if (csrf_token != login_session['csrf_token']): | |
return redirect('/login') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing!