mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-05-23 00:15:19 +03:00
Add support for password hashes as an optional alternative to plaintext passwords (#216)
This commit is contained in:
parent
29b017f277
commit
2c2db61158
8 changed files with 67 additions and 10 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue