Skip to content
Snippets Groups Projects
Unverified Commit 54e32cf0 authored by Henrich Neumann's avatar Henrich Neumann
Browse files

Default enabling national id card number to false

parent 4e87c80a
No related branches found
No related tags found
1 merge request!417Add national ID card number as a valid form of identification
......@@ -15,7 +15,7 @@ REACT_APP_RESPONSIBLE_ORGANIZATION_LINK='https://www.usit.uio.no/om/organisasjon
REACT_APP_VERIFY_GUEST_EXPLANATION_LINK='https://www.uio.no/tjenester/it/brukernavn-passord/gjestetjenesten/hjelp/verifisering.html'
REACT_APP_DISABLE_NIN_VERIFICATION='false'
REACT_APP_ENABLE_NATIONAL_ID_CARD_NUMBER='true'
REACT_APP_ENABLE_NATIONAL_ID_CARD_NUMBER='false'
REACT_APP_DISPLAYCONTACTATUNIT='true'
REACT_APP_DISPLAYCOMMENT='true'
......
......@@ -353,7 +353,7 @@ DEFAULT_IDENTITY_SOURCE = "greg"
DISABLE_NIN_VERIFY = False
# Toggle if national id card number can be used as identification to verify guests.
ENABLE_NATIONAL_ID_CARD_NUMBER = True
ENABLE_NATIONAL_ID_CARD_NUMBER = False
# Iga client config used by identity checking view when checking iga
# Take care to also set the check parameter to True if you use this
......@@ -371,6 +371,16 @@ ALLOWED_VERIFIED_ID_TYPES = [
"norwegian_national_id_card_number",
"passport_number",
]
if (
ENABLE_NATIONAL_ID_CARD_NUMBER
and not "norwegian_national_id_card_number" in ALLOWED_VERIFIED_ID_TYPES
):
ALLOWED_VERIFIED_ID_TYPES.append("norwegian_national_id_card_number")
elif (
not ENABLE_NATIONAL_ID_CARD_NUMBER
and "norwegian_national_id_card_number" in ALLOWED_VERIFIED_ID_TYPES
):
ALLOWED_VERIFIED_ID_TYPES.remove("norwegian_national_id_card_number")
# Which units are excluded when sending notification emails on expiring roles (primary key)
EXCLUDED_UNITS = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment