views: set request.token at registration (#46248)
This commit is contained in:
parent
0d2ea81ab4
commit
3df3bf6efd
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue