unset page if its signout on signout
This commit is contained in:
parent
82a327b115
commit
a1163b5f2e
1 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,10 @@ def signout(request):
|
||||||
'''
|
'''
|
||||||
response = json_response(text='ok')
|
response = json_response(text='ok')
|
||||||
if request.user.is_authenticated():
|
if request.user.is_authenticated():
|
||||||
|
profile = request.user.get_profile()
|
||||||
|
if profile.ui.get('page') == 'signout':
|
||||||
|
profile.ui['page'] = ''
|
||||||
|
profile.save()
|
||||||
response = json_response(text='logged out')
|
response = json_response(text='logged out')
|
||||||
logout(request)
|
logout(request)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue