Add notification to browser unlock

This commit is contained in:
Bernd Schoolmann 2024-01-19 07:40:50 +01:00
parent 496cbaa078
commit 49e17b36ae
No known key found for this signature in database

View File

@ -3,8 +3,10 @@ package actions
import (
"encoding/base64"
"fmt"
"time"
"github.com/quexten/goldwarden/agent/config"
"github.com/quexten/goldwarden/agent/notify"
"github.com/quexten/goldwarden/agent/sockets"
"github.com/quexten/goldwarden/agent/systemauth"
"github.com/quexten/goldwarden/agent/systemauth/biometrics"
@ -51,6 +53,7 @@ func handleGetBiometricsKey(request messages.IPCMessage, cfg *config.Config, vau
Key: masterKeyB64,
})
actionsLog.Info("Browser Biometrics: Sending key...")
notify.Notify("Goldwarden", "Unlocked Browser Extension", "", 10*time.Second, func() {})
return response, err
}