Update value stripping for CAS fetch

Use `strip` instead of just removing first and last chars.
Signed-off-by: VAN ZUIJLEN Nils's avatarNils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
parent c20be33a
......@@ -54,7 +54,7 @@ class CASAuth(BaseAuth):
container = label.findNextSibling()
if container is None:
return None
value = container.getText()[1:-1]
value = container.getText().strip("[] \n\t")
return value or None
def _get_names(self, soup) -> Tuple[str, str]:
......
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