Skip to content

Commit

Permalink
prevent back button github reconnect (#5043)
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipert authored and thelostone-mc committed Aug 20, 2019
1 parent 3612036 commit 62cc1c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/marketing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ def account_settings(request):
create_user_action(profile.user, 'account_disconnected', request)
messages.success(request, _('Your account has been disconnected from Github'))
logout_redirect = redirect(reverse('logout') + '?next=/')
logout_redirect['Cache-Control'] = 'max-age=0 no-cache no-store must-revalidate'
return logout_redirect
elif request.POST.get('delete', False):

Expand Down

0 comments on commit 62cc1c5

Please sign in to comment.