Skip to content

Commit

Permalink
Delete the reg state from session post-reg to reload on next pageload.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalex committed Apr 23, 2015
1 parent 4c65369 commit 8031138
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python-packages/securesync/devices/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def initialize_registration():
@render_to("securesync/register_public_key_client.html")
def register_public_key_client(request):

# Delete the registration state from the session to ensure it is refreshed next pageload
del request.session["registered"]

own_device = Device.get_own_device()
if own_device.is_registered():
initialize_registration()
Expand Down

0 comments on commit 8031138

Please sign in to comment.