views: set request.token at registration (#46248)

This commit is contained in:
Valentin Deniaud 2020-09-01 11:27:26 +02:00
parent 0d2ea81ab4
commit 3df3bf6efd
1 changed files with 3 additions and 0 deletions

View File

@ -914,6 +914,9 @@ class RegistrationCompletionView(CreateView):
self.token_obj = token
self.token = token.content
# allow access to token content from external authentication backends
request.token = self.token
self.authentication_method = self.token.get('authentication_method', 'email')
self.email = self.token['email']
if 'ou' in self.token: