mirror of
https://github.com/quexten/goldwarden.git
synced 2025-01-10 18:12:35 +01:00
26 lines
605 B
Go
26 lines
605 B
Go
|
package biometrics
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
var biometricsDisabled = false
|
||
|
|
||
|
func init() {
|
||
|
if os.Getenv("GOLDWARDEN_SYSTEM_AUTH_DISABLED") == "true" {
|
||
|
biometricsDisabled = true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
type Approval string
|
||
|
|
||
|
const (
|
||
|
AccessCredential Approval = "com.quexten.goldwarden.accesscredential"
|
||
|
ChangePin Approval = "com.quexten.goldwarden.changepin"
|
||
|
SSHKey Approval = "com.quexten.goldwarden.usesshkey"
|
||
|
ModifyVault Approval = "com.quexten.goldwarden.modifyvault"
|
||
|
BrowserBiometrics Approval = "com.quexten.goldwarden.browserbiometrics"
|
||
|
)
|
||
|
|
||
|
func (a Approval) String() string {
|
||
|
return string(a)
|
||
|
}
|