Grant other sessions while pin session is active
This commit is contained in:
parent
606dd176ef
commit
9ac1d8100a
1 changed files with 15 additions and 13 deletions
|
|
@ -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…
Reference in a new issue