增加重置totp的命令

This commit is contained in:
dushixiang
2021-04-14 22:27:12 +08:00
parent 5cee2dd50e
commit 11f2d8a1f4
4 changed files with 54 additions and 4 deletions

View File

@ -18,6 +18,7 @@ type Config struct {
Mysql *Mysql
Sqlite *Sqlite
ResetPassword string
ResetTotp string
}
type Mysql struct {
@ -83,6 +84,7 @@ func SetupConfig() *Config {
Key: viper.GetString("server.key"),
},
ResetPassword: viper.GetString("reset-password"),
ResetTotp: viper.GetString("reset-totp"),
Debug: viper.GetBool("debug"),
Demo: viper.GetBool("demo"),
}