Commit 814b8cff authored by Jérome Perrin's avatar Jérome Perrin

authentication_policy: fix automatic credential recovery

fix NameError introduced in a97402d3
parent 4e961a54
...@@ -28,8 +28,7 @@ credential_recovery = module.newContent( ...@@ -28,8 +28,7 @@ credential_recovery = module.newContent(
portal_type="Credential Recovery", portal_type="Credential Recovery",
reference=context.getReference(), reference=context.getReference(),
destination_decision_value=context, destination_decision_value=context,
language=portal.Localizer.get_selected_language(), language=portal.Localizer.get_selected_language())
activate_kw={'tag': tag})
# immediate reindex allowed because it is a new object # immediate reindex allowed because it is a new object
credential_recovery.immediateReindexObject() credential_recovery.immediateReindexObject()
context.serialize() context.serialize()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment