Skip to content

Commit

Permalink
Make SSHKey nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
devplayer0 committed Oct 25, 2020
1 parent 0e601ff commit b0f54ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ type User struct {
ID uint `json:"id" gorm:"primaryKey"`

// User-modifiable
Username string `json:"username" gorm:"uniqueIndex"`
Email string `json:"email" gorm:"uniqueIndex"`
Password string `json:"password,omitempty"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
SSHKey string `json:"ssh_key"`
Username string `json:"username" gorm:"uniqueIndex"`
Email string `json:"email" gorm:"uniqueIndex"`
Password string `json:"password,omitempty"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
SSHKey *string `json:"ssh_key,omitempty"`

// Only admin can set
Verified bool `json:"verified"`
Expand Down

0 comments on commit b0f54ba

Please sign in to comment.