SkinsRestorer / SkinSystem

The Minecraft SkinSystem for SkinsRestorer
MIT License
131 stars 47 forks source link

Custom MySQL table and column name #86

Closed NetheriteTree closed 4 years ago

NetheriteTree commented 4 years ago

I am using Authme and Blessing skin server(https://github.com/bs-community/blessing-skin-server) And the passwordHash is BCRYPT But it seems that SkinSystem doesn't support it. Is there any way to change skinsystem's passwordhash?

riflowth commented 4 years ago

https://github.com/riflowth/SkinSystem/blob/master/resources/server/authenCore.php#L10-L17 SkinSystem is supported BCRYPT

NetheriteTree commented 4 years ago

https://github.com/riflowth/SkinSystem/blob/master/resources/server/authenCore.php#L10-L17 SkinSystem is supported BCRYPT

` # Table of the database mySQLTablename: users

Column of IDs to sort data

mySQLColumnId: uid`

Maybe it doesn't support custom table name

NetheriteTree commented 4 years ago

https://github.com/riflowth/SkinSystem/blob/master/resources/server/authenCore.php#L10-L17 SkinSystem is supported BCRYPT

# Table of the database mySQLTablename: users # Column of IDs to sort data mySQLColumnId: uid Maybe it doesn't support custom table name

After installing image

riflowth commented 4 years ago

You can config table name on config.nogit.php

NetheriteTree commented 4 years ago

You can config table name on config.nogit.php

But I haven't found any option to change the table name https://github.com/riflowth/SkinSystem/wiki/Configuration

NetheriteTree commented 4 years ago

You can config table name on config.nogit.php

It only has a option to edit database name but no option to change table name

riflowth commented 4 years ago

Use the latest version (Master branch)

NetheriteTree commented 4 years ago

Use the latest version (Master branch)

But column still can't set # Column of IDs to sort data mySQLColumnId: uid

riflowth commented 4 years ago

https://github.com/riflowth/SkinSystem/blob/master/config.nogit.php.example

NetheriteTree commented 4 years ago

https://github.com/riflowth/SkinSystem/blob/master/config.nogit.php.example

'am' => [ 'enabled' => false, 'host' => '', 'port' => '', 'database' => '', 'username' => '', 'password' => '', 'table' => 'authme', 'hash' => [ 'method' => 'sha256' ], 'authsec' => [ 'enabled' => false, 'failed_attempts' => 3, 'threshold_hours' => 24 ] ], It seems that it can only change the table name But what I need is to change the column name The default id column of Authme is id and I changed it to uid Before I changing it, it was working fine reinstalling isn't work It only shows a black page after installing image

riflowth commented 4 years ago

Why did you need to change the column name? (Solution, edit the source code: https://github.com/riflowth/SkinSystem/blob/master/resources/server/authenCore.php)