Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
HashPassword returns the bcrypt hash of the password
Types ¶
type Credentials ¶
type User ¶
type User struct { Key *datastore.Key `json:"-" datastore:"__key__"` ID string `json:"id" datastore:"-"` Created time.Time `json:"dateCreated,omitempty" datastore:"dateCreated,noindex"` Updated time.Time `json:"lastUpdated,omitempty" datastore:"lastUpdated,noindex"` Creator string `json:"creator,omitempty" datastore:"creator,noindex"` Modifier string `json:"modifier,omitempty" datastore:"modifier,noindex"` IsAdmin bool `json:"isAdmin" datastore:"isAdmin"` Email string `json:"email" datastore:"email"` HashedPassword string `json:"-" datastore:"hashedPassword,noindex"` Token Token `json:"-" datastore:"-"` TokenString string `json:"token" datastore:"-"` Credentials }
type Validation ¶
type Validation struct {
TokenValid bool `json:"valid"`
}
Click to show internal directories.
Click to hide internal directories.