mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-24 16:10:51 +08:00
fix: 解决数据库文件不存在时启用失败的问题 (#1544)
This commit is contained in:
@@ -25,11 +25,11 @@ var userinfoCmd = &cobra.Command{
|
||||
port := getSettingByKey(db, "ServerPort")
|
||||
ssl := getSettingByKey(db, "SSL")
|
||||
entrance := getSettingByKey(db, "SecurityEntrance")
|
||||
enptrySetting := getSettingByKey(db, "EncryptKey")
|
||||
encryptSetting := getSettingByKey(db, "EncryptKey")
|
||||
|
||||
p := ""
|
||||
if len(enptrySetting) == 16 {
|
||||
global.CONF.System.EncryptKey = enptrySetting
|
||||
if len(encryptSetting) == 16 {
|
||||
global.CONF.System.EncryptKey = encryptSetting
|
||||
p, _ = encrypt.StringDecrypt(password)
|
||||
} else {
|
||||
p = password
|
||||
|
||||
Reference in New Issue
Block a user