Skip to content

Commit

Permalink
drop the Gratipay account importer
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Oct 9, 2022
1 parent 55e40f7 commit 1da0d9e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 616 deletions.
4 changes: 1 addition & 3 deletions liberapay/security/csrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ def reject_forgeries(state, request, response, website, _):
# Assume that methods defined as 'safe' by RFC7231 don't need protection.
request.method in SAFE_METHODS or
# Don't check CSRF tokens for callbacks, it's not necessary.
request_path.startswith('/callbacks/') or
# CSRF protection is turned off for this request.
request_path == '/migrate' and not request.qs
request_path.startswith('/callbacks/')
)
if off:
return
Expand Down
68 changes: 0 additions & 68 deletions tests/py/test_migrate.py

This file was deleted.

0 comments on commit 1da0d9e

Please sign in to comment.