Skip to content
Snippets Groups Projects
Commit f375ec4d authored by ale's avatar ale
Browse files

fix typo

parent abdb6584
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment