您尚未登录,请登录后浏览更多内容! 登录 | 加入最MC

QQ登录

只需一步,快速开始

 找回密码
 加入最MC

QQ登录

只需一步,快速开始

查看: 1646|回复: 0
打印 上一主题 下一主题

[插件] Authme登陆插件对接discuz论坛后登陆密码错误

[复制链接]
  • TA的每日心情
    慵懒
    2015-6-14 09:01
  • 签到天数: 1 天

    [LV.1]初来乍到

    跳转到指定楼层
    楼主
    发表于 2017-8-5 09:41:53 | 只看该作者 |0人打赏回帖奖励 |倒序浏览 |阅读模式
    30MC币
    插件:Authme
    插件版本:5.2
    服务端版本spigot-1.7-1.8
    具体情况是这样的~
    使用登陆插件对接dz论坛的数据库后发现,在论坛注册账号后 在服务器登陆提示密码错误!

    插件配置如下

    求大神看看有什么问题


    1. DataSource:
    2.     # What type of database do you want to use?
    3.     # Valid values: sqlite, mysql
    4.     backend: 'MYSQL'
    5.     # Enable database caching, should improve database performance
    6.     caching: true
    7.     # Database host address
    8.     mySQLHost: '127.0.0.1'
    9.     # Database port
    10.     mySQLPort: '3306'
    11.     # Username about Database Connection Infos
    12.     mySQLUsername: 'root'
    13.     # Password about Database Connection Infos
    14.     mySQLPassword: 'mxx2002'
    15.     # Database Name, use with converters or as SQLITE database name
    16.     mySQLDatabase: 'login'
    17.     # Table of the database
    18.     mySQLTablename: 'pre_common_member'
    19.     # Column of IDs to sort data
    20.     mySQLColumnId: 'uid'
    21.     # Column for storing or checking players nickname
    22.     mySQLColumnName: 'username'
    23.     # Column for storing or checking players RealName
    24.     mySQLRealName: 'realname'
    25.     # Column for storing players passwords
    26.     mySQLColumnPassword: 'password'
    27.     # Request mysql over SSL
    28.     mySQLUseSSL: true
    29.     # Column for storing players emails
    30.     mySQLColumnEmail: 'email'
    31.     # Column for storing if a player is logged in or not
    32.     mySQLColumnLogged: 'isLogged'
    33.     # Column for storing players ips
    34.     mySQLColumnIp: 'regip'
    35.     # Column for storing players lastlogins
    36.     mySQLColumnLastLogin: 'lastlogin'
    37.     # Column for storing player LastLocation - X
    38.     mySQLlastlocX: 'x'
    39.     # Column for storing player LastLocation - Y
    40.     mySQLlastlocY: 'y'
    41.     # Column for storing player LastLocation - Z
    42.     mySQLlastlocZ: 'z'
    43.     # Column for storing player LastLocation - World Name
    44.     mySQLlastlocWorld: 'world'
    45.     # Overrides the size of the DB Connection Pool, -1 = Auto
    46.     poolSize: -1
    47. ExternalBoardOptions:
    48.     # Column for storing players passwords salts
    49.     mySQLColumnSalt: 'salt'
    50.     # Column for storing players groups
    51.     mySQLColumnGroup: ''
    52.     # -1 means disabled. If you want that only activated players
    53.     # can log into your server, you can set here the group number
    54.     # of unactivated users, needed for some forum/CMS support
    55.     nonActivedUserGroup: -1
    56.     # Other MySQL columns where we need to put the username (case-sensitive)
    57.     mySQLOtherUsernameColumns: []
    58.     # How much log2 rounds needed in BCrypt (do not change if you do not know what it does)
    59.     bCryptLog2Round: 10
    60.     # phpBB table prefix defined during the phpBB installation process
    61.     phpbbTablePrefix: 'phpbb_'
    62.     # phpBB activated group ID; 2 is the default registered group defined by phpBB
    63.     phpbbActivatedGroupId: 2
    64.     # Wordpress prefix defined during WordPress installation
    65.     wordpressTablePrefix: 'wp_'
    66. Converter:
    67.     Rakamak:
    68.         # Rakamak file name
    69.         fileName: 'users.rak'
    70.         # Rakamak use IP?
    71.         useIP: false
    72.         # Rakamak IP file name
    73.         ipFileName: 'UsersIp.rak'
    74.     CrazyLogin:
    75.         # CrazyLogin database file name
    76.         fileName: 'accounts.db'
    77. settings:
    78.     sessions:
    79.         # Do you want to enable the session feature?
    80.         # If enabled, when a player authenticates successfully,
    81.         # his IP and his nickname is saved.
    82.         # The next time the player joins the server, if his IP
    83.         # is the same as last time and the timeout hasn't
    84.         # expired, he will not need to authenticate.
    85.         enabled: false
    86.         # After how many minutes should a session expire?
    87.         # Remember that sessions will end only after the timeout, and
    88.         # if the player's IP has changed but the timeout hasn't expired,
    89.         # the player will be kicked from the server due to invalid session
    90.         timeout: 10
    91.         # Should the session expire if the player tries to log in with
    92.         # another IP address?
    93.         sessionExpireOnIpChange: true
    94.     # Message language, available languages:
    95.     # https://github.com/AuthMe/AuthMe ... ocs/translations.md
    96.     messagesLanguage: 'zhcn'
    97.     # Log level: INFO, FINE, DEBUG. Use INFO for general messages,
    98.     # FINE for some additional detailed ones (like password failed),
    99.     # and DEBUG for debugging
    100.     logLevel: 'FINE'
    101.     # By default we schedule async tasks when talking to the database. If you want
    102.     # typical communication with the database to happen synchronously, set this to false
    103.     useAsyncTasks: true
    104.     restrictions:
    105.         # Can not authenticated players chat?
    106.         # Keep in mind that this feature also blocks all commands not
    107.         # listed in the list below.
    108.         allowChat: false
    109.         # Hide the chat log from players who are not authenticated?
    110.         hideChat: false
    111.         # Allowed commands for unauthenticated players
    112.         allowCommands:
    113.         - '/login'
    114.         - '/register'
    115.         - '/l'
    116.         - '/reg'
    117.         - '/email'
    118.         - '/captcha'
    119.         # Max number of allowed registrations per IP
    120.         # The value 0 means an unlimited number of registrations!
    121.         maxRegPerIp: 999
    122.         # Minimum allowed username length
    123.         minNicknameLength: 3
    124.         # Maximum allowed username length
    125.         maxNicknameLength: 16
    126.         # When this setting is enabled, online players can't be kicked out
    127.         # due to "Logged in from another Location"
    128.         # This setting will prevent potential security exploits.
    129.         ForceSingleSession: true
    130.         ForceSpawnLocOnJoin:
    131.             # If enabled, every player that spawn in one of the world listed in
    132.             # "ForceSpawnLocOnJoin.worlds" will be teleported to the spawnpoint after successful
    133.             # authentication. The quit location of the player will be overwritten.
    134.             # This is different from "teleportUnAuthedToSpawn" that teleport player
    135.             # to the spawnpoint on join.
    136.             enabled: false
    137.             # WorldNames where we need to force the spawn location
    138.             # Case-sensitive!
    139.             worlds:
    140.             - 'world'
    141.             - 'world_nether'
    142.             - 'world_the_end'
    143.         # This option will save the quit location of the players.
    144.         SaveQuitLocation: false
    145.         # To activate the restricted user feature you need
    146.         # to enable this option and configure the AllowedRestrictedUser field.
    147.         AllowRestrictedUser: false
    148.         # The restricted user feature will kick players listed below
    149.         # if they don't match the defined IP address. Names are case-insensitive.
    150.         # Example:
    151.         #     AllowedRestrictedUser:
    152.         #     - playername;127.0.0.1
    153.         AllowedRestrictedUser: []
    154.         # Should unregistered players be kicked immediately?
    155.         kickNonRegistered: false
    156.         # Should players be kicked on wrong password?
    157.         kickOnWrongPassword: true
    158.         # Should not logged in players be teleported to the spawn?
    159.         # After the authentication they will be teleported back to
    160.         # their normal position.
    161.         teleportUnAuthedToSpawn: false
    162.         # Can unregistered players walk around?
    163.         allowMovement: false
    164.         # Should not authenticated players have speed = 0?
    165.         # This will reset the fly/walk speed to default value after the login.
    166.         removeSpeed: true
    167.         # After how many seconds should players who fail to login or register
    168.         # be kicked? Set to 0 to disable.
    169.         timeout: 30
    170.         # Regex syntax of allowed characters in the player name.
    171.         allowedNicknameCharacters: '[a-zA-Z0-9_]*'
    172.         # How far can unregistered players walk?
    173.         # Set to 0 for unlimited radius
    174.         allowedMovementRadius: 100
    175.         # Should we protect the player inventory before logging in? Requires ProtocolLib.
    176.         ProtectInventoryBeforeLogIn: true
    177.         # Should we deny the tabcomplete feature before logging in? Requires ProtocolLib.
    178.         DenyTabCompleteBeforeLogin: false
    179.         # Should we display all other accounts from a player when he joins?
    180.         # permission: /authme.admin.accounts
    181.         displayOtherAccounts: true
    182.         # Ban ip when the ip is not the ip registered in database
    183.         banUnsafedIP: false
    184.         # Spawn priority; values: authme, essentials, multiverse, default
    185.         spawnPriority: 'authme,essentials,multiverse,default'
    186.         # Maximum Login authorized by IP
    187.         maxLoginPerIp: 0
    188.         # Maximum Join authorized by IP
    189.         maxJoinPerIp: 0
    190.         # AuthMe will NEVER teleport players if set to true!
    191.         noTeleport: false
    192.         # Regex syntax for allowed chars in passwords
    193.         allowedPasswordCharacters: '[\x21-\x7E]*'
    194.         # Threshold of the other accounts command, a value less than 2 means disabled.
    195.         otherAccountsCmdThreshold: 0
    196.         # Command to run when a user has more accounts than the configured threshold.
    197.         # Available variables: %playername%, %playerip%
    198.         otherAccountsCmd: 'say The player %playername% with ip %playerip% has multiple accounts!'
    199.     GameMode:
    200.         # Force survival gamemode when player joins?
    201.         ForceSurvivalMode: false
    202.     unrestrictions:
    203.         # Below you can list all account names that AuthMe will ignore
    204.         # for registration or login. Configure it at your own risk!!
    205.         # This option adds compatibility with BuildCraft and some other mods.
    206.         # It is case-insensitive! Example:
    207.         # UnrestrictedName:
    208.         # - 'npcPlayer'
    209.         # - 'npcPlayer2'
    210.         UnrestrictedName: []
    211.     security:
    212.         # Minimum length of password
    213.         minPasswordLength: 4
    214.         # Maximum length of password
    215.         passwordMaxLength: 30
    216.         # This is a very important option: every time a player joins the server,
    217.         # if they are registered, AuthMe will switch him to unLoggedInGroup.
    218.         # This should prevent all major exploits.
    219.         # You can set up your permission plugin with this special group to have no permissions,
    220.         # or only permission to chat (or permission to send private messages etc.).
    221.         # The better way is to set up this group with few permissions, so if a player
    222.         # tries to exploit an account they can do only what you've defined for the group.
    223.         # After, a logged in player will be moved to his correct permissions group!
    224.         # Please note that the group name is case-sensitive, so 'admin' is different from 'Admin'
    225.         # Otherwise your group will be wiped and the player will join in the default group []!
    226.         # Example unLoggedinGroup: NotLogged
    227.         unLoggedinGroup: 'unLoggedinGroup'
    228.         # Possible values: SHA256, BCRYPT, BCRYPT2Y, PBKDF2, SALTEDSHA512, WHIRLPOOL,
    229.         # MYBB, IPB3, PHPBB, PHPFUSION, SMF, XENFORO, XAUTH, JOOMLA, WBB3, WBB4, MD5VB,
    230.         # PBKDF2DJANGO, WORDPRESS, ROYALAUTH, CUSTOM (for developers only). See full list at
    231.         # https://github.com/AuthMe/AuthMe ... /hash_algorithms.md
    232.         passwordHash: 'SALTED2MD5'
    233.         # Salt length for the SALTED2MD5 MD5(MD5(password)+salt)
    234.         doubleMD5SaltLength: 6
    235.         # If a password check fails, AuthMe will also try to check with the following hash methods.
    236.         # Use this setting when you change from one hash method to another.
    237.         # AuthMe will update the password to the new hash. Example:
    238.         # legacyHashes:
    239.         # - 'SHA1'
    240.         legacyHashes: [SHA1]
    241.         # Number of rounds to use if passwordHash is set to PBKDF2. Default is 10000
    242.         pbkdf2Rounds: 10000
    243.         # Prevent unsafe passwords from being used; put them in lowercase!
    244.         # You should always set 'help' as unsafePassword due to possible conflicts.
    245.         # unsafePasswords:
    246.         # - '123456'
    247.         # - 'password'
    248.         # - 'help'
    249.         unsafePasswords:
    250.         - '123456'
    251.         - 'password'
    252.         - 'qwerty'
    253.         - '12345'
    254.         - '54321'
    255.         - '123456789'
    256.         - 'help'
    257.     registration:
    258.         # Enable registration on the server?
    259.         enabled: true
    260.         # Send every X seconds a message to a player to
    261.         # remind him that he has to login/register
    262.         messageInterval: 5
    263.         # Only registered and logged in players can play.
    264.         # See restrictions for exceptions
    265.         force: true
    266.         # Type of registration: PASSWORD or EMAIL
    267.         # PASSWORD = account is registered with a password supplied by the user;
    268.         # EMAIL = password is generated and sent to the email provided by the user.
    269.         # More info at https://github.com/AuthMe/AuthMeReloaded/wiki/Registration
    270.         type: 'PASSWORD'
    271.         # Second argument the /register command should take: NONE = no 2nd argument
    272.         # CONFIRMATION = must repeat first argument (pass or email)
    273.         # EMAIL_OPTIONAL = for password register: 2nd argument can be empty or have email address
    274.         # EMAIL_MANDATORY = for password register: 2nd argument MUST be an email address
    275.         secondArg: 'CONFIRMATION'
    276.         # Do we force kick a player after a successful registration?
    277.         # Do not use with login feature below
    278.         forceKickAfterRegister: false
    279.         # Does AuthMe need to enforce a /login after a successful registration?
    280.         forceLoginAfterRegister: false
    281.     # Enable to display the welcome message (welcome.txt) after a login
    282.     # You can use colors in this welcome.txt + some replaced strings:
    283.     # {PLAYER}: player name, {ONLINE}: display number of online players,
    284.     # {MAXPLAYERS}: display server slots, {IP}: player ip, {LOGINS}: number of players logged,
    285.     # {WORLD}: player current world, {SERVER}: server name
    286.     # {VERSION}: get current bukkit version, {COUNTRY}: player country
    287.     useWelcomeMessage: true
    288.     # Broadcast the welcome message to the server or only to the player?
    289.     # set true for server or false for player
    290.     broadcastWelcomeMessage: false
    291.     # Should we delay the join message and display it once the player has logged in?
    292.     delayJoinMessage: false
    293.     # The custom join message that will be sent after a successful login,
    294.     # keep empty to use the original one.
    295.     # Available variables:
    296.     # {PLAYERNAME}: the player name (no colors)
    297.     # {DISPLAYNAME}: the player name (with colors)
    298.     customJoinMessage: ''
    299.     # Should we remove the leave messages of unlogged users?
    300.     removeUnloggedLeaveMessage: false
    301.     # Should we remove join messages altogether?
    302.     removeJoinMessage: false
    303.     # Should we remove leave messages altogether?
    304.     removeLeaveMessage: false
    305.     # Do we need to add potion effect Blinding before login/reigster?
    306.     applyBlindEffect: false
    307.     # Do we need to prevent people to login with another case?
    308.     # If Xephi is registered, then Xephi can login, but not XEPHI/xephi/XePhI
    309.     preventOtherCase: true
    310. permission:
    311.     # Take care with this option; if you want
    312.     # to use group switching of AuthMe
    313.     # for unloggedIn players, set this setting to true.
    314.     # Default is false.
    315.     EnablePermissionCheck: false
    316. Email:
    317.     # Email SMTP server host
    318.     mailSMTP: 'smtp.gmail.com'
    319.     # Email SMTP server port
    320.     mailPort: 465
    321.     # Email account which sends the mails
    322.     mailAccount: ''
    323.     # Email account password
    324.     mailPassword: ''
    325.     # Email address, fill when mailAccount is not the email address of the account
    326.     mailAddress: ''
    327.     # Custom sender name, replacing the mailAccount name in the email
    328.     mailSenderName: ''
    329.     # Recovery password length
    330.     RecoveryPasswordLength: 8
    331.     # Mail Subject
    332.     mailSubject: 'Your new AuthMe password'
    333.     # Like maxRegPerIP but with email
    334.     maxRegPerEmail: 1
    335.     # Recall players to add an email?
    336.     recallPlayers: false
    337.     # Delay in minute for the recall scheduler
    338.     delayRecall: 5
    339.     # Blacklist these domains for emails
    340.     emailBlacklisted:
    341.     - '10minutemail.com'
    342.     # Whitelist ONLY these domains for emails
    343.     emailWhitelisted: []
    344.     # Send the new password drawn in an image?
    345.     generateImage: false
    346.     # The OAuth2 token
    347.     emailOauth2Token: ''
    348. Hooks:
    349.     # Do we need to hook with multiverse for spawn checking?
    350.     multiverse: true
    351.     # Do we need to hook with BungeeCord?
    352.     bungeecord: false
    353.     # Send player to this BungeeCord server after register/login
    354.     sendPlayerTo: ''
    355.     # Do we need to disable Essentials SocialSpy on join?
    356.     disableSocialSpy: false
    357.     # Do we need to force /motd Essentials command on join?
    358.     useEssentialsMotd: false
    359. GroupOptions:
    360.     # Unregistered permission group
    361.     UnregisteredPlayerGroup: ''
    362.     # Registered permission group
    363.     RegisteredPlayerGroup: ''
    364. Protection:
    365.     # Enable some servers protection (country based login, antibot)
    366.     enableProtection: false
    367.     # Apply the protection also to registered usernames
    368.     enableProtectionRegistered: true
    369.     # Countries allowed to join the server and register. For country codes, see
    370.     # https://dev.bukkit.org/projects/ ... ges/countries-codes
    371.     # PLEASE USE QUOTES!
    372.     countries:
    373.     - 'US'
    374.     - 'GB'
    375.     # Countries not allowed to join the server and register
    376.     # PLEASE USE QUOTES!
    377.     countriesBlacklist:
    378.     - 'A1'
    379.     # Do we need to enable automatic antibot system?
    380.     enableAntiBot: true
    381.     # The interval in seconds
    382.     antiBotInterval: 5
    383.     # Max number of players allowed to login in the interval
    384.     # before the AntiBot system is enabled automatically
    385.     antiBotSensibility: 10
    386.     # Duration in minutes of the antibot automatic system
    387.     antiBotDuration: 10
    388.     # Delay in seconds before the antibot activation
    389.     antiBotDelay: 60
    390. Purge:
    391.     # If enabled, AuthMe automatically purges old, unused accounts
    392.     useAutoPurge: false
    393.     # Number of days after which an account should be purged
    394.     daysBeforeRemovePlayer: 60
    395.     # Do we need to remove the player.dat file during purge process?
    396.     removePlayerDat: false
    397.     # Do we need to remove the Essentials/userdata/player.yml file during purge process?
    398.     removeEssentialsFile: false
    399.     # World where are players.dat stores
    400.     defaultWorld: 'world'
    401.     # Remove LimitedCreative/inventories/player.yml, player_creative.yml files during purge?
    402.     removeLimitedCreativesInventories: false
    403.     # Do we need to remove the AntiXRayData/PlayerData/player file during purge process?
    404.     removeAntiXRayFile: false
    405.     # Do we need to remove permissions?
    406.     removePermissions: false
    407. Security:
    408.     SQLProblem:
    409.         # Stop the server if we can't contact the sql database
    410.         # Take care with this, if you set this to false,
    411.         # AuthMe will automatically disable and the server won't be protected!
    412.         stopServer: true
    413.     console:
    414.         # Remove passwords from console?
    415.         removePassword: true
    416.         # Copy AuthMe log output in a separate file as well?
    417.         logConsole: true
    418.     captcha:
    419.         # Enable captcha when a player uses wrong password too many times
    420.         useCaptcha: false
    421.         # Max allowed tries before a captcha is required
    422.         maxLoginTry: 5
    423.         # Captcha length
    424.         captchaLength: 5
    425.     tempban:
    426.         # Tempban a user's IP address if they enter the wrong password too many times
    427.         enableTempban: false
    428.         # How many times a user can attempt to login before their IP being tempbanned
    429.         maxLoginTries: 10
    430.         # The length of time a IP address will be tempbanned in minutes
    431.         # Default: 480 minutes, or 8 hours
    432.         tempbanLength: 480
    433.         # How many minutes before resetting the count for failed logins by IP and username
    434.         # Default: 480 minutes (8 hours)
    435.         minutesBeforeCounterReset: 480
    436.     recoveryCode:
    437.         # Number of characters a recovery code should have (0 to disable)
    438.         length: 8
    439.         # How many hours is a recovery code valid for?
    440.         validForHours: 4
    441. BackupSystem:
    442.     # Enable or disable automatic backup
    443.     ActivateBackup: false
    444.     # Set backup at every start of server
    445.     OnServerStart: false
    446.     # Set backup at every stop of server
    447.     OnServerStop: true
    448.     # Windows only mysql installation Path
    449.     MysqlWindowsPath: 'C:\Program Files\MySQL\MySQL Server 5.1\'
    复制代码


    打赏

    0

    收藏

    0

    支持

    0

    反对

    0

    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    您需要登录后才可以回帖 登录 | 加入最MC

    本版积分规则