mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: some fields of profile leaked without auth (#2408)
* fix some fields of profile leaked without auth * protect driver and dsn of profile
This commit is contained in:
@ -24,10 +24,10 @@ type Profile struct {
|
||||
// Data is the data directory
|
||||
Data string `json:"-"`
|
||||
// DSN points to where memos stores its own data
|
||||
DSN string `json:"dsn"`
|
||||
DSN string `json:"-"`
|
||||
// Driver is the database driver
|
||||
// sqlite, mysql
|
||||
Driver string `json:"driver"`
|
||||
Driver string `json:"-"`
|
||||
// Version is the current version of server
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user