mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
fix merge error in config.go
Signed-off-by: justin-slowik <justin.slowik@thermofisher.com>
This commit is contained in:
+1
-5
@@ -103,11 +103,7 @@ func (p *password) UnmarshalJSON(b []byte) error {
|
||||
data.Hash = os.Getenv(data.HashFromEnv)
|
||||
}
|
||||
if len(data.Hash) == 0 {
|
||||
if len(data.HashFromEnv) > 0 {
|
||||
data.Hash = os.Getenv(data.HashFromEnv)
|
||||
} else {
|
||||
return fmt.Errorf("no password hash provided")
|
||||
}
|
||||
return fmt.Errorf("no password hash provided")
|
||||
}
|
||||
|
||||
// If this value is a valid bcrypt, use it.
|
||||
|
||||
Reference in New Issue
Block a user