add hook for Factors to show user settings. closes #5

This commit is contained in:
Jens Langhammer
2019-02-25 13:20:07 +01:00
parent da5568b571
commit 986fed3e7c
5 changed files with 41 additions and 7 deletions

View File

@ -15,6 +15,9 @@ class OTPFactor(Factor):
type = 'passbook.otp.factors.OTPFactor'
form = 'passbook.otp.forms.OTPFactorForm'
def has_user_settings(self):
return _('OTP'), 'pficon-locked', 'passbook_otp:otp-user-settings'
def __str__(self):
return "OTP Factor %s" % self.slug