wireguard-ui/model/user.go

11 lines
249 B
Go
Raw Permalink Normal View History

2020-04-24 13:14:54 +02:00
package model
// User model
type User struct {
Username string `json:"username"`
Password string `json:"password"`
// PasswordHash takes precedence over Password.
PasswordHash string `json:"password_hash"`
2023-03-15 21:13:53 +01:00
Admin bool `json:"admin"`
2020-04-24 13:14:54 +02:00
}