wireguard-ui/model/user.go

14 lines
377 B
Go

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"`
Admin bool `json:"admin"`
AuthSource string `json:"auth_source"`
AuthSubject string `json:"auth_subject"`
DisplayName string `json:"display_name"`
}