Skip to content

Commit

Permalink
Merge pull request learningequality#3547 from jamalex/clear_reg_statu…
Browse files Browse the repository at this point in the history
…s_in_session

Delete the reg state from session post-reg to reload on next pageload.
  • Loading branch information
aronasorman committed Apr 23, 2015
2 parents 4c65369 + 8031138 commit 92c7e5a
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 92c7e5a

Please sign in to comment.