Add support for password hashes as an optional alternative to plaintext passwords (#216)
This commit is contained in:
committed by
GitHub
parent
29b017f277
commit
2c2db61158
@@ -4,4 +4,6 @@ package model
|
||||
type User struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
// PasswordHash takes precedence over Password.
|
||||
PasswordHash string `json:"password_hash"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user