1 Star 2 Fork 0

hf / TShockAutoRegister

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Fork至:https://github.com/brian91292/TShockAutoRegister

修改点:

1、密码策略,6位、纯数字、不含4和6;
2、config.json 中 RequireLogin 配置为 true时,会为新用户自动注册和登录。
3、密码保存在 AutoRegister.json,且支持命令查询;


命令用法:

/ar info,服务状态查询
/ar on,打开 自动注册 功能
/ar off,关闭 自动注册 功能
/ar look <玩家名>,查询指定角色的密码

# ar 是 AutoRegister 的缩写

/mypassword, 查看自己的密码
/pwd, 上个指令的简写

原版TShock中和密码相关的指令:

/password <旧密码> <新密码>, 更改密码(普通用户用)
/user password <玩家名> <新密码>, 重设密码(管理员用)

权限

autoregister

AutoRegister.json 示例

{
  "records": {
    "hf": "729351",
    "GoodBoy": "390573"
  },
  "status": 0
}

关于 1.2.1 版本

由于原版使用了 玩家IP + 玩家UUID + 玩家名 的规则来生成密码,可以预测出注册用户的密码,有安全隐患,因此被TShock认定为危险插件。GHSA-w3h6-j2gm-qf7q

fork项目后,密码策略为6位随机数,用户密码不可预测,原项目的维护项目已经更改了这个问题。

About

为新用户,提供自动注册和登录服务。 expand collapse
C#
Cancel

Releases (6)

All

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/hufang360/TShockAutoRegister.git
git@gitee.com:hufang360/TShockAutoRegister.git
hufang360
TShockAutoRegister
TShockAutoRegister
master

Search