feat: add keychains

This commit is contained in:
2024-11-09 18:57:36 +00:00
parent b50abccae0
commit 0a788b05e5
30 changed files with 699 additions and 102 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ type PVEServer struct {
HostName string
Port int
Username string
Realm string
Password string
}
@@ -72,7 +73,7 @@ func (pve *PVEServer) GetAccessTicket() (*PVEAccessTicket, error) {
// note for myself: don't forget the realm
body, err := fetch("POST", url, &PVERequestInit{Body: map[string]string{
"username": pve.Username,
"username": fmt.Sprintf("%s@%s", pve.Username, pve.Realm),
"password": pve.Password,
}})
if err != nil {