GravitLauncher / Launcher

Улучшеный Minecraft лаунчер на основе sashok's742 v3
https://gravitlauncher.com
GNU General Public License v3.0
131 stars 104 forks source link

PasswordVerifier has been already registered: 'bcrypt' | Русский/English #700

Closed Lightovich1 closed 10 months ago

Lightovich1 commented 10 months ago

Version: 5.4.3 Modules: AdditionalHash_module.jar (думаю что в нем в теории может заключатся проблема) (I think the problem might theoretically lie in it)

Русский:
До подключения к БД (я использую xenforo) все запускалось нормально, сейчас возникает ошибка. Само собой за место "no" стоят актуальные данные, пробовал удалить passwordVerifier или перейти на DLE, результат один. XENFORO используется на хостинге, а не на локальной машине

image

English: Before connecting to the database (I'm using xenforo) everything was launching fine, now an error occurs. Naturally, "no" is replaced with actual data, I tried removing passwordVerifier or switching to DLE, the result is the same. XENFORO is used on hosting, not on a local machine

image


  "projectName": "Launcher",
  "mirrors": [
    "https://mirror.gravitlauncher.com/5.4.x/",
    "https://gravit-launcher-mirror.storage.googleapis.com/"
  ],
  "binaryName": "Launcher",
  "copyBinaries": true,
  "cacheUpdates": true,
  "env": "STD",
  "auth": {
    "std": {
      "core": {
        "type": "mysql",
        "mySQLHolder": {
          "address": "no",
          "port": 3306,
          "username": "no",
          "password": "no",
          "database": "no",
          "timezone": "UTC",
          "useHikari": true
        },
        "passwordVerifier": {
          "type": "bcrypt"
        },
        "expireSeconds": 3600,
        "table": "xf_user",
        "tableHwid": "hwids",
        "uuidColumn": "uuid",
        "usernameColumn": "username",
        "passwordColumn": "password",
        "accessTokenColumn": "accessToken",
        "hardwareIdColumn": "hwidId",
        "serverIDColumn": "serverID",
        "customQueryByUsernameSQL": "SELECT `uuid`, `username`, `accessToken`, `serverID`, SUBSTRING(XF_USERS_AUTH.data, 23, 60) AS `password`, `hwidId` FROM `xf_user` AS XF_USERS RIGHT JOIN `xf_user_authenticate` AS XF_USERS_AUTH ON XF_USERS.user_id = XF_USERS_AUTH.user_id WHERE `username` = ?",
        "customQueryByUUIDSQL": "SELECT `uuid`, `username`, `accessToken`, `serverID`, SUBSTRING(XF_USERS_AUTH.data, 23, 60) AS `password`, `hwidId` FROM `xf_user` AS XF_USERS RIGHT JOIN `xf_user_authenticate` AS XF_USERS_AUTH ON XF_USERS.user_id = XF_USERS_AUTH.user_id WHERE `uuid` = ?"
      },
      "textureProvider": {
        "skinURL": "http://example.com/skins/%username%.png",
        "cloakURL": "http://example.com/cloaks/%username%.png",
        "type": "request"
      },
      "isDefault": true,
      "displayName": "Default"
    }
  },
  "protectHandler": {
    "profileWhitelist": {},
    "allowUpdates": ["java8-windows-64"],
    "enableHardwareFeature": true,
    "provider": {
        "warningSpoofingLevel": 0.5,
        "criticalCompareLevel": 1.0,
        "type": "memory"
    },
    "type": "advanced"
  },
  "components": {
    "regLimiter": {
      "message": "Превышен лимит регистраций",
      "excludeIps": [],
      "exclude": [],
      "rateLimit": 3,
      "rateLimitMillis": 36000000,
      "type": "regLimiter"
    },
    "authLimiter": {
      "message": "Превышен лимит авторизаций",
      "exclude": [],
      "rateLimit": 3,
      "rateLimitMillis": 8000,
      "type": "authLimiter"
    },
    "proguard": {
      "modeAfter": "MainBuild",
      "dir": "proguard",
      "enabled": false,
      "mappings": false,
      "type": "proguard"
    }
  },
  "launch4j": {
    "enabled": true,
    "setMaxVersion": false,
    "maxVersion": "1.8.999",
    "minVersion": "1.8.0",
    "downloadUrl": "https://bell-sw.com/pages/downloads/?version=java-8-lts&os=Windows&package=jre-full",
    "productName": "GravitLauncher",
    "productVer": "5.4.3.3",
    "fileDesc": "GravitLauncher 5.4.3",
    "fileVer": "5.4.3.3",
    "internalName": "Launcher",
    "copyright": "© GravitLauncher Team",
    "trademarks": "This product is licensed under GPLv3",
    "txtFileVersion": "%s, build %d",
    "txtProductVersion": "%s, build %d"
  },
  "netty": {
    "fileServerEnabled": true,
    "ipForwarding": false,
    "disableWebApiInterface": false,
    "showHiddenFiles": false,
    "sendProfileUpdatesEvent": false,
    "launcherURL": "http://localhost:9274/Launcher.jar",
    "downloadURL": "http://localhost:9274/%dirname%/",
    "launcherEXEURL": "http://localhost:9274/Launcher.exe",
    "address": "ws://localhost:9274/api",
    "bindings": {},
    "performance": {
      "usingEpoll": false,
      "bossThread": 2,
      "workerThread": 8,
      "schedulerThread": 2,
      "maxWebSocketRequestBytes": 1048576
    },
    "security": {
      "hardwareTokenExpire": 28800,
      "publicKeyTokenExpire": 28800,
      "launcherTokenExpire": 28800
    },
    "binds": [
      {
        "address": "0.0.0.0",
        "port": 9274
      }
    ],
    "logLevel": "DEBUG"
  },
  "launcher": {
    "compress": false,
    "stripLineNumbers": false,
    "deleteTempFiles": true,
    "certificatePinning": false,
    "encryptRuntime": false,
    "customJvmOptions": [],
    "memoryLimit": 256
  },
  "sign": {
    "enabled": false,
    "keyStore": "pathToKey",
    "keyStoreType": "JKS",
    "keyStorePass": "mypass",
    "keyAlias": "myname",
    "keyPass": "mypass",
    "metaInfKeyName": "SIGNUMO.RSA",
    "metaInfSfName": "SIGNUMO.SF",
    "signAlgo": "SHA256WITHRSA"
  },
  "startScript": ".\\start.bat"
}```
Lightovich1 commented 10 months ago

Проблема действительно заключалась в модуле AdditionalHash_module, он конфликтует с методом работы с датабазой (по крайней мере удаление этого файла помогло мне. Это может быть локальным решением)