Skip to content
Snippets Groups Projects
Commit aa8a8fd4 authored by Jan Hartig's avatar Jan Hartig
Browse files

Fix: Return 401 error on unmatched certs

parent e19a74d9
Branches
Tags
1 merge request!15Fix exception on unmatched certs
......@@ -39,7 +39,7 @@ async def cert2room(request):
match = re_dn.search(s_dn)
if not match:
raise Unauthorized
raise Unauthorized("Unauthorized")
# Get user's name from regex match
name = match.groups()[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment