修复「--reset-totp xxx」无法使用的问题

This commit is contained in:
dushixiang 2022-01-24 22:24:57 +08:00
parent 809118f3e9
commit edcec79fd0
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,5 @@
# Next Terminal # Next Terminal
**说明最新版前后端代码已经全部开源1.2.x 及之后版本已去除授权限制。**
[![Docker guacd build](https://github.com/dushixiang/next-terminal/actions/workflows/docker-guacd.yml/badge.svg)](https://github.com/dushixiang/next-terminal/actions/workflows/docker-guacd.yml) [![Docker guacd build](https://github.com/dushixiang/next-terminal/actions/workflows/docker-guacd.yml/badge.svg)](https://github.com/dushixiang/next-terminal/actions/workflows/docker-guacd.yml)
[![Docker next-terminal build](https://github.com/dushixiang/next-terminal/actions/workflows/docker-next-terminal.yml/badge.svg)](https://github.com/dushixiang/next-terminal/actions/workflows/docker-next-terminal.yml) [![Docker next-terminal build](https://github.com/dushixiang/next-terminal/actions/workflows/docker-next-terminal.yml/badge.svg)](https://github.com/dushixiang/next-terminal/actions/workflows/docker-next-terminal.yml)
@ -44,7 +42,9 @@ test/test
## 问题反馈 ## 问题反馈
请提 Issues 。 - Issues
- QQ群 938145268
- Telegram https://t.me/next_terminal
## 安全问题 ## 安全问题

View File

@ -90,6 +90,7 @@ func SetupConfig() (*Config, error) {
pflag.String("server.addr", "", "server listen addr") pflag.String("server.addr", "", "server listen addr")
pflag.String("server.cert", "", "tls cert file") pflag.String("server.cert", "", "tls cert file")
pflag.String("server.key", "", "tls key file") pflag.String("server.key", "", "tls key file")
pflag.String("reset-totp", "", "")
pflag.String("reset-password", "", "") pflag.String("reset-password", "", "")
pflag.String("encryption-key", "", "") pflag.String("encryption-key", "", "")
pflag.String("new-encryption-key", "", "") pflag.String("new-encryption-key", "", "")