Skip to content

Commit

Permalink
fixed: 修复jwt的signing-key 未转成string导致乱码的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SliverHorn committed Nov 22, 2021
1 parent 664776a commit 5934a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/service/system/sys_initdb_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (initDBService *InitDBService) writeMysqlConfig(mysql config.Mysql) error {
for k, v := range cs {
global.GVA_VP.Set(k, v)
}
global.GVA_VP.Set("jwt.signing-key", uuid.NewV4())
global.GVA_VP.Set("jwt.signing-key", uuid.NewV4().String())
return global.GVA_VP.WriteConfig()
}

Expand Down
2 changes: 1 addition & 1 deletion server/service/system/sys_initdb_pgsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (initDBService *InitDBService) writePgsqlConfig(pgsql config.Pgsql) error {
for k, v := range cs {
global.GVA_VP.Set(k, v)
}
global.GVA_VP.Set("jwt.signing-key", uuid.NewV4())
global.GVA_VP.Set("jwt.signing-key", uuid.NewV4().String())
return global.GVA_VP.WriteConfig()
}

Expand Down

0 comments on commit 5934a2b

Please sign in to comment.