Less leaky __repr__ for OTPAccount class

This commit is contained in:
Ernest W. Durbin III
2017-12-23 22:18:27 -05:00
parent 608a0498c9
commit f8ebff7ff5

View File

@@ -76,7 +76,7 @@ class OTPAccount:
self.refDate = refDate
def __repr__(self):
return f'<OTPAccount: {self.label} ({self.issuer}), Secret: 0x{self.secret.hex()}, Type: {self.type}, Algorithm: {self.algorithm}, Digits: {self.digits}, Counter: {self.counter}, Period: {self.period}, Reference Date: {self.refDate}>'
return f'<OTPAccount: {self.issuer} ({self.label})>'
def decode_archive(archive):
label = archive.decode("label")