Skip to content

Commit

Permalink
1624 - Return API Key on Password Change (gophish#1663)
Browse files Browse the repository at this point in the history
Updates the user model to return the user’s API key for easier administration.
  • Loading branch information
Michael Eder authored and jordan-wright committed Nov 16, 2019
1 parent e812ea0 commit 1aab1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type User struct {
Id int64 `json:"id"`
Username string `json:"username" sql:"not null;unique"`
Hash string `json:"-"`
ApiKey string `json:"-" sql:"not null;unique"`
ApiKey string `json:"api_key" sql:"not null;unique"`
Role Role `json:"role" gorm:"association_autoupdate:false;association_autocreate:false"`
RoleID int64 `json:"-"`
}
Expand Down

0 comments on commit 1aab1a3

Please sign in to comment.