summaryrefslogtreecommitdiffstats
path: root/users/views
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-22 18:41:10 -0700
committerAndrew Godwin2022-11-22 18:41:10 -0700
commit7b867b229d2bf925b94181ea74be460b6aeed493 (patch)
treed072b8aec8451f8aa137e45d37e71ba8279a6557 /users/views
parent47de2c4424ae257917721652578c034f0216fd9b (diff)
downloadtakahe-7b867b229d2bf925b94181ea74be460b6aeed493.tar.gz
takahe-7b867b229d2bf925b94181ea74be460b6aeed493.tar.bz2
takahe-7b867b229d2bf925b94181ea74be460b6aeed493.zip
Switch to new identity on creation
Diffstat (limited to 'users/views')
-rw-r--r--users/views/identity.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/views/identity.py b/users/views/identity.py
index 1676eee..b926189 100644
--- a/users/views/identity.py
+++ b/users/views/identity.py
@@ -218,4 +218,5 @@ class CreateIdentity(FormView):
)
new_identity.users.add(self.request.user)
new_identity.generate_keypair()
+ self.request.session["identity_id"] = new_identity.id
return redirect(new_identity.urls.view)