Option to add staticPasswords from environment variables

This commit is contained in:
krishnadurai
2019-12-13 16:33:21 -08:00
parent 64b269d1c1
commit 91cbd466a5
3 changed files with 179 additions and 6 deletions

View File

@@ -292,6 +292,9 @@ type Password struct {
// Bcrypt encoded hash of the password. This package enforces a min cost value of 10
Hash []byte `json:"hash"`
// Bcrypt encoded hash of the password set in environment variable of this name.
HashFromEnv string `json:"hashFromEnv"`
// Optional username to display. NOT used during login.
Username string `json:"username"`