Add support for password hashes as an optional alternative to plaintext passwords

This commit is contained in:
Marcus Wichelmann 2022-08-08 13:27:51 +02:00
parent efbc36d61f
commit f646b0d140
No known key found for this signature in database
GPG key ID: D9FC1B92E557C80D
8 changed files with 67 additions and 10 deletions

View file

@ -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"`
}