cmd/dex: accept raw bcrypt'd hash as well as base64'd version of hash

This commit is contained in:
Eric Chiang
2016-11-03 15:23:56 -07:00
parent aa7f304bc1
commit ebe51e736d
4 changed files with 156 additions and 22 deletions

View File

@@ -58,7 +58,7 @@ enablePasswordDB: true
staticPasswords:
- email: "admin@example.com"
# bcrypt hash of the string "password"
hash: "JDJhJDE0JDh4TnlVZ3pzSmVuQm4ySlRPT2QvbmVGcUlnQzF4TEFVRFA3VlpTVzhDNWlkLnFPcmNlYUJX"
hash: "$2a$10$33EMT0cVYVlPy6WAMCLsceLYjWhuHpbz5yuZxu/GAFj03J9Lytjuy"
username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"