diff --git a/authserv/ldap_model.py b/authserv/ldap_model.py index f9ee8efe30a3a71d99c84346c3e428f4fcf1b484..7251641cd6f39fcb6e3819971d6c08ddcee7ae58 100644 --- a/authserv/ldap_model.py +++ b/authserv/ldap_model.py @@ -77,12 +77,13 @@ class User(model.User): self._otp_enabled = True self._totp_secret = values[0] elif key == 'appSpecificPassword': - self.asps = [v.split(':', 2) for v in values] + self._asps = [v.split(':', 2) for v in values] def otp_enabled(self): return self._otp_enabled - app_specific_passwords_enabled = otp_enabled + def app_specific_passwords_enabled(self): + return bool(self._asps) def get_name(self): return self._username