0001-dissociate-doesn-t-disconnect-from-GRC-anymore-9525.patch
README | ||
---|---|---|
101 | 101 |
'css': 'css/example_associate.css', |
102 | 102 |
'js': 'js/example_associate.js', |
103 | 103 |
} |
104 | ||
105 |
# List of cookies to delete when dissaciating an account |
|
106 |
SITE_AUTH_COOKIE_KEYS = [ |
|
107 |
'UserSessionId', |
|
108 |
] |
|
104 | 109 |
|
105 | 110 |
# Mellon Settings |
106 | 111 |
MELLON_IDENTITY_PROVIDERS = [ |
mandayejs/mandaye/views.py | ||
---|---|---|
126 | 126 |
user__username=request.user.username) |
127 | 127 |
c_user.linked = False |
128 | 128 |
c_user.save() |
129 |
return HttpResponseRedirect(resolve_url('mellon_logout')) |
|
129 |
logger.debug("{} dissacioted".format(c_user.user.username)) |
|
130 |
response = HttpResponseRedirect('/') |
|
131 |
for cookie_key in getattr(settings, 'SITE_AUTH_COOKIE_KEYS', []): |
|
132 |
response.delete_cookie(cookie_key) |
|
133 |
logger.debug("cookie {} deleted".format(cookie_key)) |
|
134 |
return response |
|
130 | 135 |
except (UserCredentials.DoesNotExist,): |
131 | 136 |
return HttpResponseRedirect(resolve_url('associate')) |
132 | 137 | |
133 |
- |