浏览代码

Fix method called on non existing $this

Bubka 5 年之前
父节点
当前提交
0fd9869230
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Classes/OTP.php

+ 1 - 1
app/Classes/OTP.php

@@ -18,7 +18,7 @@ class OTP
     public static function generate($uri)
     {
         
-        $otp = $this->get($uri);
+        $otp = OTP::get($uri);
 
         if( get_class($otp) === 'OTPHP\TOTP' ) {