mirror of
https://github.com/quexten/goldwarden.git
synced 2025-02-03 05:22:09 +01:00
Grant other sessions while pin session is active
This commit is contained in:
parent
606dd176ef
commit
9ac1d8100a
@ -86,6 +86,7 @@ func GetPermission(sessionType SessionType, ctx sockets.CallingContext, config *
|
|||||||
if sessionStore.verifySession(ctx, sessionType) {
|
if sessionStore.verifySession(ctx, sessionType) {
|
||||||
log.Info("Permission granted from cached session")
|
log.Info("Permission granted from cached session")
|
||||||
} else {
|
} else {
|
||||||
|
if !sessionStore.verifySession(ctx, Pin) {
|
||||||
if biometrics.BiometricsWorking() {
|
if biometrics.BiometricsWorking() {
|
||||||
biometricsApproval := biometrics.CheckBiometrics(biometricsApprovalType)
|
biometricsApproval := biometrics.CheckBiometrics(biometricsApprovalType)
|
||||||
if !biometricsApproval {
|
if !biometricsApproval {
|
||||||
@ -101,6 +102,7 @@ func GetPermission(sessionType SessionType, ctx sockets.CallingContext, config *
|
|||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// approval, err := pinentry.GetApproval("Goldwarden authorization", message)
|
// approval, err := pinentry.GetApproval("Goldwarden authorization", message)
|
||||||
// if err != nil || !approval {
|
// if err != nil || !approval {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user