Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion owasp-top10-2016-mobile/m5/panda_zap/server/routes/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (es *EchoServer) GetUserKeyV2(c echo.Context) error {

es.Logger.Info(fmt.Sprintf("User '%s' key found in the database", username))

return c.JSON(http.StatusOK, keyToBeReturned)
return c.JSON(http.StatusForbidden, map[string]string{"result": "fail", "message": "Key retrieval is not supported"})
}

// UpdateUserMessages attempts to update messages from a given user.
Expand Down