Switch to new identity on creation
This commit is contained in:
parent
47de2c4424
commit
7b867b229d
|
@ -218,4 +218,5 @@ class CreateIdentity(FormView):
|
||||||
)
|
)
|
||||||
new_identity.users.add(self.request.user)
|
new_identity.users.add(self.request.user)
|
||||||
new_identity.generate_keypair()
|
new_identity.generate_keypair()
|
||||||
|
self.request.session["identity_id"] = new_identity.id
|
||||||
return redirect(new_identity.urls.view)
|
return redirect(new_identity.urls.view)
|
||||||
|
|
Loading…
Reference in New Issue