rcdevs / nextcloud_openotp_auth

OpenOTP plugin enables Multi-Factor Authentication to login to Nextcloud Admin/User Pane
GNU Affero General Public License v3.0
6 stars 1 forks source link

Error: Undefined property: OCA\TwoFactor_RCDevsOpenOTP\AuthService\OpenotpAuth::$user_settings at /apps/openotp_auth/lib/AuthService/OpenotpAuth.php#350 #12

Closed solracsf closed 5 months ago

solracsf commented 1 year ago

NC 25.0.10, AUTH 1.5.0

{
  "reqId": "MhiCSbQWJUqVnB8z8OLr",
  "level": 3,
  "time": "2023-08-08T09:31:24+02:00",
  "user": "nuin",
  "app": "PHP",
  "method": "GET",
  "url": "/login/challenge/rcdevsopenotp?redirect_url=/apps/files/?dir%3D/%26fileid%3D132568",
  "message": "Undefined property: OCA\\TwoFactor_RCDevsOpenOTP\\AuthService\\OpenotpAuth::$user_settings at /var/www/nextcloud/apps/openotp_auth/lib/AuthService/OpenotpAuth.php#350",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0",
  "version": "25.0.9.2",
  "exception": {
    "Exception": "Error",
    "Message": "Undefined property: OCA\\TwoFactor_RCDevsOpenOTP\\AuthService\\OpenotpAuth::$user_settings at /var/www/nextcloud/apps/openotp_auth/lib/AuthService/OpenotpAuth.php#350",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/apps/openotp_auth/lib/AuthService/OpenotpAuth.php",
        "line": 350,
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::",
        "args": [
          2,
          "Undefined property: OCA\\TwoFactor_RCDevsOpenOTP\\AuthService\\OpenotpAuth::$user_settings",
          "/var/www/nextcloud/apps/openotp_auth/lib/AuthService/OpenotpAuth.php",
          350
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/openotp_auth/lib/Provider/TwoFactorRCDevsOpenOTPProvider.php",
        "line": 208,
        "function": "openOTPSimpleLogin",
        "class": "OCA\\TwoFactor_RCDevsOpenOTP\\AuthService\\OpenotpAuth",
        "type": "->",
        "args": [
          "nvuillin",
          null,
          null,
          "-LDAP,WEBAUTH",
          "035e1e5608c4cd025bc1e92d5ab5c355"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/openotp_auth/lib/Provider/TwoFactorRCDevsOpenOTPProvider.php",
        "line": 279,
        "function": "openOTPsendRequest",
        "class": "OCA\\TwoFactor_RCDevsOpenOTP\\Provider\\TwoFactorRCDevsOpenOTPProvider",
        "type": "->",
        "args": [
          [
            "OC\\User\\User"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/core/Controller/TwoFactorChallengeController.php",
        "line": 143,
        "function": "getTemplate",
        "class": "OCA\\TwoFactor_RCDevsOpenOTP\\Provider\\TwoFactorRCDevsOpenOTPProvider",
        "type": "->",
        "args": [
          [
            "OC\\User\\User"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 225,
        "function": "showChallenge",
        "class": "OC\\Core\\Controller\\TwoFactorChallengeController",
        "type": "->",
        "args": [
          "rcdevsopenotp",
          "/apps/files/?dir=/&fileid=132568"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 133,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OC\\Core\\Controller\\TwoFactorChallengeController"
          ],
          "showChallenge"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 172,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OC\\Core\\Controller\\TwoFactorChallengeController"
          ],
          "showChallenge"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 298,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OC\\Core\\Controller\\TwoFactorChallengeController",
          "showChallenge",
          [
            "OC\\AppFramework\\DependencyInjection\\DIContainer"
          ],
          [
            "rcdevsopenotp",
            "core.TwoFactorChallenge.showChallenge"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1053,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/login/challenge/rcdevsopenotp"
        ]
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/nextcloud/lib/private/Log/ErrorHandler.php",
    "Line": 92,
    "CustomMessage": "--"
  },
  "id": "64d732ad51849"
}