0003-misc-re-use-logout-view-in-deletion-view.patch
src/authentic2/views.py | ||
---|---|---|
1151 | 1151 |
if self.user == request.user: |
1152 | 1152 |
# No validation message displayed, as the user will surely |
1153 | 1153 |
# notice their own account deletion... |
1154 |
return utils.redirect(request, 'auth_logout')
|
|
1154 |
return logout(request, check_referer=False)
|
|
1155 | 1155 |
# No real use for cancel_url or next_url here, assuming the link |
1156 | 1156 |
# has been received by email. We instead redirect the user to the |
1157 | 1157 |
# homepage. |
1158 |
- |