diff --git a/scipost/views.py b/scipost/views.py index 43ed540d0315ce3f07e7a515bdd404233a44408d..38e93547242ae3e1085e639456e24d4bd32d19e1 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -1322,5 +1322,5 @@ def csrf_failure(request, reason=""): """ Custom CRSF Failure. Informing admins via email as well. """ - mail.mail_admins('CRSF Failure', 'Error message: ' + reason) + mail.mail_admins('CRSF Failure', 'Error message: ' + reason + '\nUser: ' + request.user) return render(request, 'crsf-failure.html')