add hook for Factors to show user settings. closes #5
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user