Przeglądaj źródła

Fix method called on non existing $this

Bubka 5 lat temu
rodzic
commit
0fd9869230
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Classes/OTP.php

+ 1 - 1
app/Classes/OTP.php

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