summaryrefslogtreecommitdiffstats
path: root/idp/extra/modules/root.ptl
diff options
context:
space:
mode:
Diffstat (limited to 'idp/extra/modules/root.ptl')
-rw-r--r--idp/extra/modules/root.ptl2
1 files changed, 2 insertions, 0 deletions
diff --git a/idp/extra/modules/root.ptl b/idp/extra/modules/root.ptl
index 58a8a31..fbb7fba 100644
--- a/idp/extra/modules/root.ptl
+++ b/idp/extra/modules/root.ptl
@@ -180,6 +180,8 @@ class AlternateRootDirectory(OldRootDirectory):
collectivity = get_request().cookies['collectivity']
except KeyError:
collectivity = None
+ if collectivity not in [x.dn for x in collectivities]:
+ collectivity = None
form.add(SingleSelectWidget, 'collectivity', title = _('Collectivity'), required = True,
value = collectivity, options = collectivities)
form.widgets.append(password_widget)