diff --git a/pycroft/model/mpsk_client.py b/pycroft/model/mpsk_client.py index ad028ec75..4e41ea6a7 100644 --- a/pycroft/model/mpsk_client.py +++ b/pycroft/model/mpsk_client.py @@ -38,7 +38,7 @@ def validate_mac(self, _, mac_address): @validates("name") def validate_name(self, _, name): - if len(name.replace(" ", "")) == 0: + if name.strip(): raise InvalidName("Name cannot be empty") return name