Skip to content

Commit

Permalink
move User.Username to the top of the struct
Browse files Browse the repository at this point in the history
Username is the canonical user identifier across providers, so move it to the top so that it's more visible
  • Loading branch information
aaronpk committed Oct 9, 2018
1 parent afc0a41 commit 4d29425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/structs/structs.go
Expand Up @@ -7,11 +7,11 @@ type UserI interface {

// User is inherited.
type User struct {
Username string `json:"username",mapstructure:"username"`
Name string `json:"name"`
Email string `json:"email"`
CreatedOn int64 `json:"createdon"`
LastUpdate int64 `json:"lastupdate"`
Username string `json:"username",mapstructure:"username"`
ID int `json:"id",mapstructure:"id"`
// jwt.StandardClaims
}
Expand Down

0 comments on commit 4d29425

Please sign in to comment.