コード例 #1
0
ファイル: authenticator.py プロジェクト: liang0/sentry-1
 def make_otp(self):
     return TOTP(self.config["secret"],
                 digits=6,
                 interval=self.code_ttl,
                 default_window=1)
コード例 #2
0
ファイル: authenticator.py プロジェクト: liang0/sentry-1
 def make_otp(self):
     return TOTP(self.secret)