diff --git a/app/cred.py b/app/cred.py index c55ab617..ee14f8b6 100644 --- a/app/cred.py +++ b/app/cred.py @@ -64,7 +64,7 @@ def validate_cred(self, userid, new_cred): if isequal: return 1, "Credentials already available." - if new_cred["type"] == "EUNode": + if new_cred["type"] in ["EUNode", "EUNodeCont"]: if new_cred["node"] == cred["node"]: return 2, ("This site has already a Credential with the same EU Node site." + " This may cause problems authenticating with the site." + diff --git a/app/static/images/EUNodeContRow.png b/app/static/images/EUNodeContRow.png new file mode 100644 index 00000000..fdf91d58 Binary files /dev/null and b/app/static/images/EUNodeContRow.png differ diff --git a/app/templates/modal_creds.html b/app/templates/modal_creds.html index 11ccc5fd..67e0bf86 100644 --- a/app/templates/modal_creds.html +++ b/app/templates/modal_creds.html @@ -314,6 +314,19 @@ +{% elif cred_type == "EUNodeCont" %} +