up web client can get pwd if exist

This commit is contained in:
ljw
2024-09-24 10:15:04 +08:00
parent 5b5943b287
commit a161e3ba10
2 changed files with 25 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ type WebClientPeerInfoPayload struct {
Username string `json:"username"`
Hostname string `json:"hostname"`
Platform string `json:"platform"`
Hash string `json:"hash"`
}
func (wcpp *WebClientPeerPayload) FromAddressBook(a *model.AddressBook) {
@@ -25,5 +26,6 @@ func (wcpp *WebClientPeerPayload) FromAddressBook(a *model.AddressBook) {
Username: a.Username,
Hostname: a.Hostname,
Platform: a.Platform,
Hash: a.Hash,
}
}